Skip to main content

TriResult

Type Alias TriResult 

Source
pub type TriResult<T, Se> = Result<T, TriError<Se>>;

Aliased Type§

pub enum TriResult<T, Se> {
    Ok(T),
    Err(TriError<Se>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(TriError<Se>)

Contains the error value

Trait Implementations§

Source§

impl<T, S> TriResultHelper<T, S> for TriResult<T, S>

Source§

fn on_soft_err<F: FnOnce(S) -> Result<T>>(self, f: F) -> Result<T>

Source§

fn map_soft_err<F: FnOnce(S) -> U, U>(self, f: F) -> TriResult<T, U>

Source§

fn elevate_err(self) -> Result<T>

If soft error, make it hard error.