pub type StoreResult<T> = Result<T, StoreError>;Aliased Type§
pub enum StoreResult<T> {
Ok(T),
Err(StoreError),
}Variants§
Trait Implementations§
Source§impl StoreResultEmptyTuple for StoreResult<()>
impl StoreResultEmptyTuple for StoreResult<()>
Source§fn unwrap_or_exists(self)
fn unwrap_or_exists(self)
Unwrap or assert that the error is key already exists
Source§impl<T> StoreResultExtensions<T> for StoreResult<T>
impl<T> StoreResultExtensions<T> for StoreResult<T>
Source§fn unwrap_option(self) -> Option<T>
fn unwrap_option(self) -> Option<T>
Unwrap or assert that the error is key not fund in which case
None is returned