Type Alias Result

Source
pub type Result<T, E = Error> = Result<T, E>;

Aliased Type§

enum Result<T, E = Error> {
    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, E> Context<T> for Result<T, E>
where E: Error + 'static,

Source§

fn context(self, message: impl Into<String>) -> Result<T>

Source§

fn with_context(self, message: impl FnOnce() -> String) -> Result<T>

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here