[−][src]Trait strerror::ResultChainErrExt
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<F, S>(self, context_fn: F) -> Result<T, StrError> where
F: FnOnce() -> S,
S: Into<String>,
F: FnOnce() -> S,
S: Into<String>,
Map the Err value within a Result to a StrError, adding
context.
Implementations on Foreign Types
impl<T, E> ResultChainErrExt<T> for Result<T, E> where
E: Into<Box<dyn Error + Send + Sync>>, [src]
E: Into<Box<dyn Error + Send + Sync>>,
fn chain_err<F, S>(self, context_fn: F) -> Result<T, StrError> where
F: FnOnce() -> S,
S: Into<String>, [src]
F: FnOnce() -> S,
S: Into<String>,