Struct tikv_jemalloc_ctl::opt::tcache[][src]

pub struct tcache;

Thread-local allocation caching behavior.

Thread-specific caching allows many allocations to be satisfied without performing any thread synchronization, at the cost of increased memory use. This is enabled by default.

Examples

use tikv_jemalloc_ctl::opt;
let tcache = opt::tcache::read().unwrap();
println!("thread-local caching: {}", tcache);

Implementations

impl tcache[src]

pub fn mib() -> Result<tcache_mib>[src]

Returns Management Information Base (MIB)

This value can be used to access the key without doing string lookup.

pub fn name() -> &'static Name[src]

Key [::keys::Name].

impl tcache[src]

pub fn read() -> Result<bool>[src]

Reads value using string API.

Auto Trait Implementations

impl Send for tcache

impl Sync for tcache

impl Unpin for tcache

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.