pub enum StorageOutcome {
Inserted([u8; 32]),
Updated([u8; 32]),
Zeroed([u8; 32]),
NonExistentValue([u8; 32]),
ValueExists([u8; 32]),
CapacityExceeded,
Vacant,
Occupied,
}
Variants§
Inserted([u8; 32])
A value has been added to storage
Updated([u8; 32])
The existing value has been replaced with the new value
Zeroed([u8; 32])
The value has been removed
NonExistentValue([u8; 32])
The value does not exist
ValueExists([u8; 32])
The value already exists in storage
CapacityExceeded
The capacity of the storage has been reached
Vacant
Storage filled with zero bytes array
Occupied
Storage filled with non-zero bytes array
Trait Implementations§
Source§impl BorshDeserialize for StorageOutcome
impl BorshDeserialize for StorageOutcome
Source§impl BorshSerialize for StorageOutcome
impl BorshSerialize for StorageOutcome
Source§impl Clone for StorageOutcome
impl Clone for StorageOutcome
Source§fn clone(&self) -> StorageOutcome
fn clone(&self) -> StorageOutcome
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Ord for StorageOutcome
impl Ord for StorageOutcome
Source§fn cmp(&self, other: &StorageOutcome) -> Ordering
fn cmp(&self, other: &StorageOutcome) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StorageOutcome
impl PartialEq for StorageOutcome
Source§impl PartialOrd for StorageOutcome
impl PartialOrd for StorageOutcome
impl Copy for StorageOutcome
impl Eq for StorageOutcome
impl StructuralPartialEq for StorageOutcome
Auto Trait Implementations§
impl Freeze for StorageOutcome
impl RefUnwindSafe for StorageOutcome
impl Send for StorageOutcome
impl Sync for StorageOutcome
impl Unpin for StorageOutcome
impl UnwindSafe for StorageOutcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more