pub enum Mode {
Off,
Report,
Abort,
}Expand description
What happens when a marked thread allocates.
Variants§
Off
Nothing. guard does not mark the thread and the check never fires.
The default, so that installing the allocator in a binary is not on its own a change to what that binary does.
Report
Print each distinct site once, count the rest, and carry on.
Abort
Abort the process on the first one. Y7 as written.
Trait Implementations§
impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Mode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more