Type Alias MaybeError

Source
pub type MaybeError<E = AnyError> = Result<(), E>;
Expand description

Represents the possibility of an error E. It is basically a Result that only cares for its Err variant.

§Generics

You can (and should) replace the default error type E with your own Error.

Aliased Type§

pub enum MaybeError<E = AnyError> {
    Ok(()),
    Err(E),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(E)

Contains the error value