pub trait ErrorTrace {
// Required method
fn add_error_trace(&mut self, trace: TraceInfo);
}Expand description
Base trait for adding error trace to error types.
This trait provides the fundamental error trace addition method and is dyn-compatible.
It serves as the base for the more ergonomic ErrorTraceExt trait.
Required Methods§
Sourcefn add_error_trace(&mut self, trace: TraceInfo)
fn add_error_trace(&mut self, trace: TraceInfo)
Adds error trace information to the error.
This is the core method that other error trace methods build upon.