pub struct Backtrace { /* 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() -> DecrustBacktrace
pub fn capture() -> DecrustBacktrace
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() -> DecrustBacktrace
pub fn force_capture() -> DecrustBacktrace
Forces backtrace capture regardless of environment variables
Use this when you need backtraces for debugging purposes
Sourcepub fn disabled() -> DecrustBacktrace
pub fn disabled() -> DecrustBacktrace
Creates a disabled backtrace (no capture)
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
Source§impl DecrustBacktrace
impl DecrustBacktrace
Sourcepub fn generate() -> DecrustBacktrace
pub fn generate() -> DecrustBacktrace
Generate a new backtrace - compatibility method for code that expects generate()
Trait Implementations§
Source§impl AsBacktrace for DecrustBacktrace
impl AsBacktrace for DecrustBacktrace
Source§fn as_backtrace(&self) -> Option<&Backtrace>
fn as_backtrace(&self) -> Option<&Backtrace>
Source§impl Clone for DecrustBacktrace
impl Clone for DecrustBacktrace
Source§fn clone(&self) -> DecrustBacktrace
fn clone(&self) -> DecrustBacktrace
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§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§fn from(backtrace: Backtrace) -> DecrustBacktrace
fn from(backtrace: Backtrace) -> DecrustBacktrace
Source§impl GenerateImplicitData for DecrustBacktrace
Implementation for our backtrace type
impl GenerateImplicitData for DecrustBacktrace
Implementation for our backtrace type