Enum std::backtrace::BacktraceStatus
#[non_exhaustive] pub enum BacktraceStatus { Unsupported, Disabled, Captured, }
The current status of a backtrace, indicating whether it was captured or whether it is empty for some other reason.
Variants (Non-exhaustive)
Unsupported
Capturing a backtrace is not supported, likely because it’s not implemented for the current platform.
Disabled
Capturing a backtrace has been disabled through either the RUST_LIB_BACKTRACE
or RUST_BACKTRACE
environment variables.
Captured
A backtrace has been captured and the Backtrace
should print reasonable information when rendered.
Trait Implementations
impl Debug for BacktraceStatus
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more
impl PartialEq<BacktraceStatus> for BacktraceStatus
fn eq(&self, other: &BacktraceStatus) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for BacktraceStatus
impl StructuralEq for BacktraceStatus
impl StructuralPartialEq for BacktraceStatus
Auto Trait Implementations
impl RefUnwindSafe for BacktraceStatus
impl Send for BacktraceStatus
impl Sync for BacktraceStatus
impl Unpin for BacktraceStatus
impl UnwindSafe for BacktraceStatus
Blanket Implementations
impl<T> From<T> for T
pub fn from(t: T) -> T
Performs the conversion.
pub fn into(self) -> U
Performs the conversion.
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
Performs the conversion.
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
Performs the conversion.
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/backtrace/enum.BacktraceStatus.html