Skip to main content

AsBacktrace

Trait AsBacktrace 

Source
pub trait AsBacktrace {
    // Required method
    fn as_backtrace(&self) -> Option<&Backtrace>;
}
Expand description

Trait for types that can provide a backtrace

This is our version of snafu’s AsBacktrace trait

Required Methods§

Source

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

Get the backtrace associated with this error, if any

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AsBacktrace for Backtrace

Implementors§