Result

Type Alias Result 

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

A result type that default to Error as error type

For many target platforms utcnow() cannot fail. If this is true for the current target, then the constant INFALLIBLE will be true. Rust will automatically optimize the unwrap() call into a no-op in this case.

Aliased Type§

pub 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