Expand description
Panic support in the standard library.
Re-exportsΒ§
use crate::any::Any;πuse crate::sync::atomic::Atomic;πExperimental use crate::sync::atomic::AtomicU8;πuse crate::sync::atomic::Ordering;πuse crate::sync::Condvar;πuse crate::sync::Mutex;πuse crate::sync::RwLock;πuse crate::thread::Result;πuse crate::collections;πuse crate::fmt;πuse crate::panicking;πpub use crate::panicking::set_hook;pub use crate::panicking::take_hook;pub use core::panic::panic_2021;π»Experimental pub use crate::panicking::update_hook;Experimental
MacrosΒ§
- panic_
2015 π»Experimental
StructsΒ§
- Assert
Unwind Safe - A simple wrapper around a type to assert that it is unwind safe.
- Location
- A struct containing information about the location of a panic.
- Panic
Hook Info - A struct providing information about a panic.
EnumsΒ§
- Backtrace
Style Experimental - The configuration for whether and how the default panic hook will capture and display the backtrace.
StaticsΒ§
- SHOULD_
CAPTURE π
TraitsΒ§
- RefUnwind
Safe - A marker trait representing types where a shared reference is considered unwind safe.
- Unwind
Safe - A marker trait which represents βpanic safeβ types in Rust.
FunctionsΒ§
- catch_
unwind - Invokes a closure, capturing the cause of an unwinding panic if one occurs.
- panic_
any - Panics the current thread with the given message as the panic payload.
- resume_
unwind - Triggers a panic without invoking the panic hook.
- abort_
on_ unwind Experimental - Invokes a closure, aborting if the closure unwinds.
- always_
abort Experimental - Makes all future panics abort directly without running the panic hook or unwinding.
- get_
backtrace_ style Experimental - Checks whether the standard libraryβs panic hook will capture and print a backtrace.
- set_
backtrace_ style Experimental - Configures whether the default panic hook will capture and display a backtrace.
Type AliasesΒ§
- Panic
Info Deprecated - A struct providing information about a panic.