tracing_helpers

Trait ErrorValueExt

Source
pub trait ErrorValueExt {
    // Required method
    fn as_error(&self) -> &(dyn Error + 'static);
}
Expand description

Extension trait to make it easy to trace errors.

Required Methods§

Source

fn as_error(&self) -> &(dyn Error + 'static)

Returns the error as a type that can be traced.

Implementors§

Source§

impl<T> ErrorValueExt for T
where T: 'static + Error,