Function in_context_of

Source
pub fn in_context_of<O, E, C, CE, B>(context: C, body: B) -> Result<O, CE>
where E: WithContext<C, ContextError = CE>, B: FnOnce() -> Result<O, E>,
Expand description

Executes closure adding context to returned error value with .with_context(context)