Type Alias Result

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

Convenience alias for functions that can error ouy with Problem.

Aliased Type§

pub enum Result<T, E = Problem> {
    Ok(T),
    Err(E),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value

Trait Implementations§

Source§

impl<T> ProblemResultExt for Result<T>

Source§

fn catch_err<E>(self) -> Result<Result<Self::Value, E>>
where E: Error + Send + Sync + 'static,

Catch a specific error type E. Read more
Source§

fn optional(self) -> Result<Option<Self::Value>>

Catch a NotFound and convert it to None. Read more
Source§

impl<T, E> ResultExt for Result<T, E>
where E: Error + Send + Sync + 'static,

Source§

fn internal(self) -> Result<Self::Value>

Converts this result to an internal error. Read more