pub enum StoreUpdate<ByteSlice: Borrow<[u8]>> {
Insert {
key: usize,
value: ByteSlice,
},
Remove {
key: usize,
},
}Expand description
Represents an update to the store as part of a transaction.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<ByteSlice> Freeze for StoreUpdate<ByteSlice>where
ByteSlice: Freeze,
impl<ByteSlice> RefUnwindSafe for StoreUpdate<ByteSlice>where
ByteSlice: RefUnwindSafe,
impl<ByteSlice> Send for StoreUpdate<ByteSlice>where
ByteSlice: Send,
impl<ByteSlice> Sync for StoreUpdate<ByteSlice>where
ByteSlice: Sync,
impl<ByteSlice> Unpin for StoreUpdate<ByteSlice>where
ByteSlice: Unpin,
impl<ByteSlice> UnsafeUnpin for StoreUpdate<ByteSlice>where
ByteSlice: UnsafeUnpin,
impl<ByteSlice> UnwindSafe for StoreUpdate<ByteSlice>where
ByteSlice: UnwindSafe,
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