Trait snafu::IntoError

source ·
pub trait IntoError<E>where
    E: Error + ErrorCompat,{
    type Source;

    // Required method
    fn into_error(self, source: Self::Source) -> E;
}
Expand description

Combines an underlying error with additional information about the error.

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

Required Associated Types§

source

type Source

The underlying error

Required Methods§

source

fn into_error(self, source: Self::Source) -> E

Combine the information to produce the error

Implementors§