Trait thisctx::IntoError

source ·
pub trait IntoError<E>: Sized {
    type Source;

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

    // Provided methods
    fn build(self) -> E
       where Self: IntoError<E, Source = NoneSource> { ... }
    fn fail<T>(self) -> Result<T, E>
       where Self: IntoError<E, Source = NoneSource> { ... }
}

Required Associated Types§

Required Methods§

source

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

Provided Methods§

source

fn build(self) -> Ewhere Self: IntoError<E, Source = NoneSource>,

source

fn fail<T>(self) -> Result<T, E>where Self: IntoError<E, Source = NoneSource>,

Implementors§