[][src]Trait strerror::ResultChainErrExt

pub trait ResultChainErrExt<T, U> {
    fn chain_err(self, context: T) -> Result<U, StrError>;
}

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

See crate level documentation for usage examples.

Required methods

fn chain_err(self, context: T) -> Result<U, StrError>

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

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

Loading content...