NothingOrError

Type Alias NothingOrError 

Source
pub type NothingOrError<E> = Result<(), Error<E>>;
Expand description

Returned when something may return either nothing or an error.

Aliased Type§

pub enum NothingOrError<E> {
    Ok(()),
    Err(Error<E>),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(Error<E>)

Contains the error value