Trait tracing_helpers::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,