pub trait GenerateBacktrace {
    // Required methods
    fn generate() -> Self;
    fn as_backtrace(&self) -> Option<&Backtrace>;
}
Expand description

Construct a backtrace, allowing it to be optional.

Required Methods§

source

fn generate() -> Self

Generate a new backtrace instance

source

fn as_backtrace(&self) -> Option<&Backtrace>

Retrieve the optional backtrace

Implementors§