Struct jemalloc_ctl::config::MallocConf [−][src]
pub struct MallocConf(_);
A type providing access to the embedded configure-time-specified run-time options config.
The string will be empty unless --with-malloc-conf was specified during build configuration.
Examples
extern crate jemallocator; extern crate jemalloc_ctl; use jemalloc_ctl::config::MallocConf; #[global_allocator] static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; fn main() { let malloc_conf = MallocConf::new().unwrap(); println!("default malloc conf: {}", malloc_conf.get().unwrap()); }
Methods
impl MallocConf[src]
impl MallocConfpub fn new() -> Result<MallocConf>[src]
pub fn new() -> Result<MallocConf>Returns a new MallocConf.
pub fn get(&self) -> Result<&'static str>[src]
pub fn get(&self) -> Result<&'static str>Returns the embedded configure-time-specified run-time options config.
Trait Implementations
impl Copy for MallocConf[src]
impl Copy for MallocConfimpl Clone for MallocConf[src]
impl Clone for MallocConffn clone(&self) -> MallocConf[src]
fn clone(&self) -> MallocConfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl Send for MallocConf
impl Send for MallocConfimpl Sync for MallocConf
impl Sync for MallocConf