Trait snafu::IntoError[][src]

pub trait IntoError<E> where
    E: Error + ErrorCompat
{ type Source; fn into_error(self, source: Self::Source) -> E; }

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.

Associated Types

type Source[src]

The underlying error

Loading content...

Required methods

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

Combine the information to produce the error

Loading content...

Implementors

impl IntoError<Error> for SnafuErrorAsSource where
    Error: Error + ErrorCompat
[src]

type Source = ConfigFileError

impl IntoError<Error> for SourceErrorDoesNotHaveBacktrace where
    Error: Error + ErrorCompat
[src]

type Source = Error

impl IntoError<Error> for UsedInTightLoop where
    Error: Error + ErrorCompat
[src]

type Source = NoneError

impl IntoError<Error> for UsualCase where
    Error: Error + ErrorCompat
[src]

type Source = NoneError

impl IntoError<Error> for Intermediate where
    Error: Error + ErrorCompat
[src]

type Source = Error

impl<__T0> IntoError<Error> for Leaf<__T0> where
    Error: Error + ErrorCompat,
    __T0: Into<i32>, 
[src]

type Source = NoneError

Loading content...