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
.
pub enum MaybeError<E = AnyError> {
Ok(()),
Err(E),
}
Contains the success value