Trait tracing_helpers::AnyhowValueExt

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

Extension trait to make it easy to trace anyhow errors.

Required Methods§

source

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

Returns the error as a type that can be traced.

Implementations on Foreign Types§

source§

impl AnyhowValueExt for Error

source§

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

Implementors§