Struct tikv_jemalloc_ctl::config::malloc_conf
source · pub struct malloc_conf;
Expand description
Default run-time options specified during jemalloc
’s build configuration.
The string will be empty unless --with-malloc-conf
was specified
during build configuration.
§Examples
use tikv_jemalloc_ctl::config;
let malloc_conf = config::malloc_conf::mib().unwrap();
println!("default malloc conf: {}", malloc_conf.read().unwrap());
Implementations§
source§impl malloc_conf
impl malloc_conf
sourcepub fn mib() -> Result<malloc_conf_mib>
pub fn mib() -> Result<malloc_conf_mib>
Returns Management Information Base (MIB)
This value can be used to access the key without doing string lookup.
sourcepub fn name() -> &'static Name
pub fn name() -> &'static Name
Key crate::keys::Name
.
Auto Trait Implementations§
impl Freeze for malloc_conf
impl RefUnwindSafe for malloc_conf
impl Send for malloc_conf
impl Sync for malloc_conf
impl Unpin for malloc_conf
impl UnwindSafe for malloc_conf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more