[][src]Trait embedded_error_chain::ResultChainError

pub trait ResultChainError<T, I: ErrorCategory, O: ErrorCategory, Tag> {
    fn chain_err(self, error_code: O) -> Result<T, Error<O>>;
}

A trait that allows chaining if a Result contains an Error value.

Required methods

fn chain_err(self, error_code: O) -> Result<T, Error<O>>

Loading content...

Implementations on Foreign Types

impl<OK, ERR, I, O, TAG> ResultChainError<OK, I, O, TAG> for Result<OK, ERR> where
    I: ErrorCategory,
    O: ErrorCategory,
    ERR: ChainError<I, O, TAG>, 
[src]

Loading content...

Implementors

Loading content...