Enum std::panic::BacktraceStyle
source · [−]#[non_exhaustive]
pub enum BacktraceStyle {
Short,
Full,
Off,
}
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
Prints a terser backtrace which ideally only contains relevant information.
Full
Prints a backtrace with all possible information.
Off
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
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more