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]

Returns a new Abort.

Returns the abort-on-warning behavior.

Auto Trait Implementations

impl Send for Abort

impl Sync for Abort