Skip to main content

ChainErrCompatExt

Trait ChainErrCompatExt 

Source
pub trait ChainErrCompatExt<T> {
    // Required method
    fn chain_err<F, K>(self, chainer: F) -> Result<T>
       where F: FnOnce() -> K,
             K: Into<ErrorKind>;
}
Expand description

chain_err compatibility between our old and new error types

Required Methods§

Source

fn chain_err<F, K>(self, chainer: F) -> Result<T>
where F: FnOnce() -> K, K: Into<ErrorKind>,

Chain this error with another

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> ChainErrCompatExt<T> for Result<T, Error>

Source§

fn chain_err<F, K>(self, chainer: F) -> Result<T>
where F: FnOnce() -> K, K: Into<ErrorKind>,

Implementors§