Result

Type Alias Result 

Source
pub type Result<T> = Result<T, Error>;
Expand description

A Result that returns Error as the error-type.

Aliased Type§

pub enum Result<T> {
    Ok(T),
    Err(Error),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value

Trait Implementations§

Source§

impl<T, C> SiftError<T, C> for Result<T>
where C: Display + Send + Sync + 'static,

Source§

fn with_context<F>(self, op: F) -> Result<T>
where F: Fn() -> C,

Like context but takes in a closure.
Source§

fn context(self, ctx: C) -> Self

Adds context that is printed with the error.
Source§

fn help(self, txt: C) -> Self

User-help text.