Trait thisctx::WithContext
source · pub trait WithContext: Sized {
type Ok;
type Err;
// Required method
fn context_with<E, C>(self, f: impl FnOnce() -> C) -> Result<Self::Ok, E>
where C: IntoError<E>,
Self::Err: Into<C::Source>;
// Provided method
fn context<E, C>(self, context: C) -> Result<Self::Ok, E>
where C: IntoError<E>,
Self::Err: Into<C::Source> { ... }
}