Struct dispose::AbortCanary[][src]

pub struct AbortCanary(_);
Expand description

Abort the process if this value is dropped.

This struct is for bypassing an unwinding panic should something go horribly wrong in an application. It is the heart of abort_on_panic, and for most cases does not need to be used directly.

Implementations

Construct a new canary.

Panics

The value produced by this function must be passed to release in order to avoid aborting the process.

Release canary. This will consume and drop it without aborting the process.

Trait Implementations

Formats the value using the given formatter. Read more

Consume self and deinitialize its contents.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.