Struct jemalloc_ctl::opt::Abort [−][src]
pub struct Abort(_);
A type determining if jemalloc will call abort(3) on most warnings.
This is disabled by default unless --enable-debug was specified during build configuration.
Examples
extern crate jemallocator; extern crate jemalloc_ctl; use jemalloc_ctl::opt::Abort; #[global_allocator] static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; fn main() { let abort = Abort::new().unwrap(); println!("abort on warning: {}", abort.get().unwrap()); }
Methods
impl Abort[src]
impl Abortpub fn new() -> Result<Abort>[src]
pub fn new() -> Result<Abort>Returns a new Abort.
pub fn get(&self) -> Result<bool>[src]
pub fn get(&self) -> Result<bool>Returns the abort-on-warning behavior.