Trait rutie_serde::ResultExt [−][src]
pub trait ResultExt { fn chain_context<F, S>(self, func: F) -> Self
where
F: FnOnce() -> S,
S: Into<String>; }
Expand description
This extension trait allows callers to call .chain_context
to add extra
context to errors, in the same way as error-chain’s .chain_err
. The
provided context will be passed to Ruby with any Exception.
Required methods
fn chain_context<F, S>(self, func: F) -> Self where
F: FnOnce() -> S,
S: Into<String>,