ErrorTrace

Trait ErrorTrace 

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl<T, E> ErrorTrace for Result<T, E>
where E: StdError + ErrorTrace,

Source§

fn add_error_trace(&mut self, trace: TraceInfo)

Implementors§