BacktraceStyle in std::panic - Rust (original) (raw)
Enum BacktraceStyle
#[non_exhaustive]
pub enum BacktraceStyle {
Short,
Full,
Off,
}
🔬This is a nightly-only experimental API. (panic_backtrace_config
#93346)
Expand description
The configuration for whether and how the default panic hook will capture and display the backtrace.
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
🔬This is a nightly-only experimental API. (panic_backtrace_config
#93346)
Prints a terser backtrace which ideally only contains relevant information.
🔬This is a nightly-only experimental API. (panic_backtrace_config
#93346)
Prints a backtrace with all possible information.
🔬This is a nightly-only experimental API. (panic_backtrace_config
#93346)
Disable collecting and displaying backtraces.