[][src]Trait strerror::ChainErr

pub trait ChainErr<T> {
    fn chain_err<C>(self, context: C) -> Result<T, StrError>
    where
        C: IntoChained
; }

Trait providing chain_err for mapping the Err variant value within a Result to a StrError.

See crate level documentation for usage examples.

Required methods

fn chain_err<C>(self, context: C) -> Result<T, StrError> where
    C: IntoChained

Map the Err variant value within a Result to a StrError, adding context.

Loading content...

Implementations on Foreign Types

impl<T, E> ChainErr<T> for Result<T, E> where
    E: Into<Box<dyn Error + Send + Sync>>, 
[src]

Loading content...

Implementors

Loading content...