pub enum RoutedBatchEntry {
Put(RoutedBatchItem),
Delete {
key: Vec<u8>,
expected: Hash,
},
}Expand description
One change in an atomic routed batch of puts and deletes (DUR-028 R3).
A delete names the value it retires by its logical hash, so a key that is absent or holds another value refuses the whole batch: the commit that replaces a checkpoint body removes exactly the body it read.
Variants§
Put(RoutedBatchItem)
A conditional replacement, exactly as in
DurableStore::apply_routed_batch.
Delete
Removal of key, whose current value hashes to expected.
Implementations§
Trait Implementations§
Source§impl Clone for RoutedBatchEntry
impl Clone for RoutedBatchEntry
Auto Trait Implementations§
impl Freeze for RoutedBatchEntry
impl RefUnwindSafe for RoutedBatchEntry
impl Send for RoutedBatchEntry
impl Sync for RoutedBatchEntry
impl Unpin for RoutedBatchEntry
impl UnsafeUnpin for RoutedBatchEntry
impl UnwindSafe for RoutedBatchEntry
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