pub type StoreResult<T> = Result<T, StoreError>;

Aliased Type§

enum StoreResult<T> {
    Ok(T),
    Err(StoreError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(StoreError)

Contains the error value

Trait Implementations§

source§

impl StoreResultEmptyTuple for StoreResult<()>

source§

fn unwrap_or_exists(self)

Unwrap or assert that the error is key already exists
source§

impl<T> StoreResultExtensions<T> for StoreResult<T>

source§

fn unwrap_option(self) -> Option<T>

Unwrap or assert that the error is key not fund in which case None is returned