Struct jemalloc_ctl::arenas::narenas
source · [−]pub struct narenas;Expand description
Current limit on the number of arenas.
Examples
use jemalloc_ctl::arenas;
println!("number of arenas: {}", arenas::narenas::read().unwrap());
let arenas_mib = arenas::narenas::mib().unwrap();
println!("number of arenas: {}", arenas_mib.read().unwrap());Implementations
sourceimpl narenas
impl narenas
sourcepub fn mib() -> Result<narenas_mib>
pub fn mib() -> Result<narenas_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 RefUnwindSafe for narenas
impl Send for narenas
impl Sync for narenas
impl Unpin for narenas
impl UnwindSafe for narenas
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more