pub struct DecrustBacktrace { /* private fields */ }
Expand description
Our own backtrace type that wraps std::backtrace::Backtrace This provides crisis-resistant backtrace functionality
Implementations§
Source§impl DecrustBacktrace
impl DecrustBacktrace
Sourcepub fn capture() -> Self
pub fn capture() -> Self
Creates a new backtrace, respecting environment variables
Checks RUST_LIB_BACKTRACE first, then RUST_BACKTRACE Only captures if set to “1” or “full”
Sourcepub fn force_capture() -> Self
pub fn force_capture() -> Self
Forces backtrace capture regardless of environment variables
Use this when you need backtraces for debugging purposes
Sourcepub fn status(&self) -> BacktraceStatus
pub fn status(&self) -> BacktraceStatus
Returns the status of this backtrace
Sourcepub fn capture_timestamp(&self) -> SystemTime
pub fn capture_timestamp(&self) -> SystemTime
Get the timestamp when this backtrace was captured
Sourcepub fn thread_name(&self) -> Option<&str>
pub fn thread_name(&self) -> Option<&str>
Get the thread name where this backtrace was captured, if available
Sourcepub fn as_std_backtrace(&self) -> Option<&Backtrace>
pub fn as_std_backtrace(&self) -> Option<&Backtrace>
Get the inner backtrace if available
Sourcepub fn extract_frames(&self) -> Vec<BacktraceFrame>
pub fn extract_frames(&self) -> Vec<BacktraceFrame>
Extract frame information from the backtrace
Trait Implementations§
Source§impl AsBacktrace for DecrustBacktrace
impl AsBacktrace for DecrustBacktrace
Source§fn as_backtrace(&self) -> Option<&Backtrace>
fn as_backtrace(&self) -> Option<&Backtrace>
Get the backtrace associated with this error, if any
Source§impl Clone for DecrustBacktrace
impl Clone for DecrustBacktrace
Source§impl Debug for DecrustBacktrace
impl Debug for DecrustBacktrace
Source§impl Display for DecrustBacktrace
impl Display for DecrustBacktrace
Source§impl From<Backtrace> for DecrustBacktrace
impl From<Backtrace> for DecrustBacktrace
Source§impl GenerateImplicitData for DecrustBacktrace
Implementation for our backtrace type
impl GenerateImplicitData for DecrustBacktrace
Implementation for our backtrace type
Auto Trait Implementations§
impl !Freeze for DecrustBacktrace
impl RefUnwindSafe for DecrustBacktrace
impl Send for DecrustBacktrace
impl Sync for DecrustBacktrace
impl Unpin for DecrustBacktrace
impl UnwindSafe for DecrustBacktrace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more