Type Alias OpResult

Source
pub type OpResult<T, E = Infallible> = Result<T, OpError<E>>;
Expand description

Shorthand for a Result where the error type is an OpError.

Aliased Type§

pub enum OpResult<T, E = Infallible> {
    Ok(T),
    Err(OpError<E>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(OpError<E>)

Contains the error value