Trait snafu::AsErrorSource [−][src]
pub trait AsErrorSource { fn as_error_source(&self) -> &(dyn Error + 'static); }
Expand description
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
fn as_error_source(&self) -> &(dyn Error + 'static)
[src]
fn as_error_source(&self) -> &(dyn Error + 'static)
[src]For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers.