Struct abort_on_panic::PanicGuard
[−]
[src]
pub struct PanicGuard { /* fields omitted */ }
Once this object is created, it can only be destroyed in an orderly fashion. Attempting to clean it up from a panic handler will abort the process.
Methods
impl PanicGuard
[src]
fn new() -> PanicGuard
[src]
Create a panic guard with a generic message.
fn with_message(message: &'static str) -> PanicGuard
[src]
Create a panic guard with a custom message.