Module no_std_compat::panic
1.9.0 · source · Expand description
Panic support in the standard library.
Structs§
- A simple wrapper around a type to assert that it is unwind safe.
- A struct containing information about the location of a panic.
- A struct providing information about a panic.
Enums§
- BacktraceStyleExperimentalThe configuration for whether and how the default panic hook will capture and display the backtrace.
Traits§
- A marker trait representing types where a shared reference is considered unwind safe.
- A marker trait which represents “panic safe” types in Rust.
Functions§
- Invokes a closure, capturing the cause of an unwinding panic if one occurs.
- Panic the current thread with the given message as the panic payload.
- Triggers a panic without invoking the panic hook.
- Registers a custom panic hook, replacing the previously registered hook.
- Unregisters the current panic hook and returns it, registering the default hook in its place.
- always_abortExperimentalMake all future panics abort directly without running the panic hook or unwinding.
- get_backtrace_styleExperimentalChecks whether the standard library’s panic hook will capture and print a backtrace.
- set_backtrace_styleExperimentalConfigure whether the default panic hook will capture and display a backtrace.
- update_hookExperimental
Type Aliases§
- PanicInfoDeprecation plannedA struct providing information about a panic.