pub trait ErrorTrace {
// Required methods
fn type_name(&self) -> &'static str;
fn variant(&self) -> String;
fn message(&self) -> &str;
fn backtrace(&self) -> Option<&Backtrace>;
fn location(&self) -> Option<&'static Location<'static>>;
fn span_trace(&self) -> &SpanTrace;
}Expand description
Object-safe view over an error, letting base render types defined in dependent crates.
Required Methods§
Sourcefn span_trace(&self) -> &SpanTrace
fn span_trace(&self) -> &SpanTrace
Captured tracing span trace.
Implementors§
impl<T: BackendError> ErrorTrace for T
Every BackendError is an ErrorTrace. The type name is derived from
std::any::type_name and reduced to its last path segment.