Trait tikv_jemalloc_ctl::Access

source ·
pub trait Access<T> {
    // Required methods
    fn read(&self) -> Result<T>;
    fn write(&self, value: T) -> Result<()>;
    fn update(&self, value: T) -> Result<T>;
}
Expand description

Safe read access to the MALLCTL NAMESPACE.

Required Methods§

source

fn read(&self) -> Result<T>

Read the key at self.

source

fn write(&self, value: T) -> Result<()>

Write value at the key self.

source

fn update(&self, value: T) -> Result<T>

Write value at the key self returning its previous value.

Implementors§

source§

impl Access<&'static str> for Name

source§

impl Access<&'static [u8]> for Name

source§

impl Access<bool> for Name

source§

impl Access<isize> for Name

source§

impl Access<u32> for Name

source§

impl Access<u64> for Name

source§

impl Access<usize> for Name

source§

impl<T: MibArg> Access<&'static str> for MibStr<T>

source§

impl<T: MibArg> Access<&'static [u8]> for MibStr<T>

source§

impl<T: MibArg> Access<bool> for Mib<T>

source§

impl<T: MibArg> Access<isize> for Mib<T>

source§

impl<T: MibArg> Access<u32> for Mib<T>

source§

impl<T: MibArg> Access<u64> for Mib<T>

source§

impl<T: MibArg> Access<usize> for Mib<T>