Enum std::panic::BacktraceStyle
source · [−]#[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.
Variants (Non-exhaustive)
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.
Short
🔬This is a nightly-only experimental API. (
panic_backtrace_config
#93346)Prints a terser backtrace which ideally only contains relevant information.
Full
🔬This is a nightly-only experimental API. (
panic_backtrace_config
#93346)Prints a backtrace with all possible information.
Off
🔬This is a nightly-only experimental API. (
panic_backtrace_config
#93346)Disable collecting and displaying backtraces.
Trait Implementations
sourceimpl Clone for BacktraceStyle
impl Clone for BacktraceStyle
sourcefn clone(&self) -> BacktraceStyle
fn clone(&self) -> BacktraceStyle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BacktraceStyle
impl Debug for BacktraceStyle
sourceimpl PartialEq<BacktraceStyle> for BacktraceStyle
impl PartialEq<BacktraceStyle> for BacktraceStyle
sourcefn eq(&self, other: &BacktraceStyle) -> bool
fn eq(&self, other: &BacktraceStyle) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for BacktraceStyle
impl Eq for BacktraceStyle
impl StructuralEq for BacktraceStyle
impl StructuralPartialEq for BacktraceStyle
Auto Trait Implementations
impl RefUnwindSafe for BacktraceStyle
impl Send for BacktraceStyle
impl Sync for BacktraceStyle
impl Unpin for BacktraceStyle
impl UnwindSafe for BacktraceStyle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more