pub struct max_background_threads;
Expand description
Maximum number of background threads that will be created.
use tikv_jemalloc_ctl::max_background_threads;
let m = max_background_threads::mib().unwrap();
println!("max_background_threads: {}", m.read().unwrap());
m.write(2).unwrap();
assert_eq!(m.read().unwrap(), 2);
Implementations§
source§impl max_background_threads
impl max_background_threads
sourcepub fn mib() -> Result<max_background_threads_mib>
pub fn mib() -> Result<max_background_threads_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 max_background_threads
impl RefUnwindSafe for max_background_threads
impl Send for max_background_threads
impl Sync for max_background_threads
impl Unpin for max_background_threads
impl UnwindSafe for max_background_threads
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