[]Trait graph_rs_sdk::error::snafu::AsErrorSource

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

Converts the receiver into an Error trait object, suitable for use in Error::source.

It is expected that most users of SNAFU will not directly interact with this trait.

Required methods

pub 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.

Loading content...

Implementations on Foreign Types

impl AsErrorSource for dyn Error + 'static + Sync

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

impl AsErrorSource for dyn Error + 'static + Send

impl AsErrorSource for dyn Error + 'static

Loading content...

Implementors

impl<T> AsErrorSource for T where
    T: 'static + Error

Loading content...