Trait liquid_error::ResultLiquidChainExt
source · pub trait ResultLiquidChainExt<T, E> {
fn chain(self, msg: &'static str) -> Result<T>;
fn chain_with<F>(self, msg: F) -> Result<T>
where
F: FnOnce() -> String;
}
Expand description
Result
extension methods for adapting third party errors to Error
.
Required Methods§
sourcefn chain_with<F>(self, msg: F) -> Result<T>where
F: FnOnce() -> String,
fn chain_with<F>(self, msg: F) -> Result<T>where
F: FnOnce() -> String,
Create an Error
with E
as the cause.