pub trait AsErrorSource {
    // Required method
    fn as_error_source(&self) -> &(dyn Error + 'static);
}

Required Methods§

source

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

For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers.

Implementations on Foreign Types§

source§

impl AsErrorSource for dyn Error + Send + Sync + 'static

source§

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

Implementors§