pub type Result<T, E = Error> = Result<T, E>;
Expand description
A result type using our Error
by default.
Aliased Type§
enum Result<T, E = Error> {
Ok(T),
Err(E),
}
Variants§
Trait Implementations§
Source§impl<T, E> ErrorExt for Result<T, E>where
E: ErrorExt,
impl<T, E> ErrorExt for Result<T, E>where
E: ErrorExt,
Source§type Output = Result<T, <E as ErrorExt>::Output>
type Output = Result<T, <E as ErrorExt>::Output>
The output type produced by
context
and
with_context
.Source§fn context<C>(self, context: C) -> Self::Outputwhere
C: IntoCowStr,
fn context<C>(self, context: C) -> Self::Outputwhere
C: IntoCowStr,
Add context to this error.
Source§fn with_context<C, F>(self, f: F) -> Self::Outputwhere
C: IntoCowStr,
F: FnOnce() -> C,
fn with_context<C, F>(self, f: F) -> Self::Outputwhere
C: IntoCowStr,
F: FnOnce() -> C,
Add context to this error, using a closure for lazy evaluation.