Type Alias kaspa_database::prelude::StoreResult
source · pub type StoreResult<T> = Result<T, StoreError>;Aliased Type§
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