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
impl Clone for BacktraceStyle
source
impl Clone for BacktraceStyle
sourcefn clone(&self) -> BacktraceStyle
source
fn clone(&self) -> BacktraceStyle
sourceReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0 · source
fn clone_from(&mut self, source: &Self)
1.0.0 · sourcePerforms copy-assignment from source. Read more
impl Debug for BacktraceStyle
source
impl Debug for BacktraceStyle
sourceimpl PartialEq<BacktraceStyle> for BacktraceStyle
source
impl PartialEq<BacktraceStyle> for BacktraceStyle
sourceimpl Copy for BacktraceStyle
sourceimpl Eq for BacktraceStyle
sourceimpl StructuralEq for BacktraceStyle
sourceimpl StructuralPartialEq for BacktraceStyle
sourceAuto Trait Implementations
impl RefUnwindSafe for BacktraceStyle
impl Send for BacktraceStyle
impl Sync for BacktraceStyle
impl Unpin for BacktraceStyle
impl UnwindSafe for BacktraceStyle
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
source
impl<T> BorrowMut<T> for T where
T: ?Sized,
sourcefn borrow_mut(&mut self) -> &mut T
const: unstable · source
fn borrow_mut(&mut self) -> &mut T
const: unstable · sourceMutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
source
impl<T> ToOwned for T where
T: Clone,
sourcetype Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
source
fn clone_into(&self, target: &mut T)
sourceUses borrowed data to replace owned data, usually by cloning. Read more