i3status_rs::errors

Type Alias Result

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

Result type returned from functions that can have our Errors.

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: StdError + Send + Sync + 'static> ErrorContext<T> for Result<T, E>

source§

fn error<M: Into<Cow<'static, str>>>(self, message: M) -> Result<T>

source§

fn or_error<M: Into<Cow<'static, str>>, F: FnOnce() -> M>( self, f: F, ) -> Result<T>

source§

impl<T, F> ToSerdeError<T> for Result<T, F>
where F: Display,

source§

fn serde_error<E: Error>(self) -> Result<T, E>