[][src]Trait strerror::ErrorChainExt

pub trait ErrorChainExt<T, U> where
    T: Into<String>, 
{ fn chain(self, context: T) -> U; }

Functionality for converting an error of any type to a StrError.

In the case of Option, the None value is considered an error.

See crate level documentation for usage examples.

Required methods

fn chain(self, context: T) -> U

Convert an error of any type to a StrError.

Loading content...

Implementations on Foreign Types

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

impl<T, U> ErrorChainExt<T, Result<U, StrError>> for Option<U> where
    T: Into<String>, 
[src]

Loading content...

Implementors

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

Loading content...