pub trait ResultLiquidChainExt<T> {
    // Required methods
    fn chain<S: Into<KString>>(self, msg: S) -> Result<T>;
    fn chain_with<F>(self, msg: F) -> Result<T>
       where F: FnOnce() -> KString;
}
Expand description

Result extension methods for adapting third party errors to Error.

Required Methods§

source

fn chain<S: Into<KString>>(self, msg: S) -> Result<T>

Create an Error with E as the cause.

source

fn chain_with<F>(self, msg: F) -> Result<T>where F: FnOnce() -> KString,

Create an Error with E as the cause.

Implementations on Foreign Types§

source§

impl<T, E> ResultLiquidChainExt<T> for Result<T, E>where E: ErrorClone,

source§

fn chain<S: Into<KString>>(self, msg: S) -> Result<T>

source§

fn chain_with<F>(self, msg: F) -> Result<T>where F: FnOnce() -> KString,

Implementors§