Expand description
Panic support in the standard library.
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.
 
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.
 - set_
hook  - Registers a custom panic hook, replacing the previously registered hook.
 - take_
hook  - Unregisters the current panic hook and returns it, registering the default hook in its place.
 - abort_
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.
 - update_
hook Experimental  - Atomic combination of 
take_hookandset_hook. Use this to replace the panic handler with a new panic handler that does something and then executes the old handler. 
Type Aliases§
- Panic
Info Deprecated  - A struct providing information about a panic.