pub enum KvUpdate {
Put(KvEntry),
Delete {
key: String,
version: VersionToken,
},
Purge {
key: String,
version: VersionToken,
},
}Expand description
Update event from a watch stream.
Variants§
Put(KvEntry)
Key was created or updated.
Delete
Key was deleted.
Purge
Key was purged (NATS-specific: all history removed). Stores without purge semantics should map this to Delete.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KvUpdate
impl RefUnwindSafe for KvUpdate
impl Send for KvUpdate
impl Sync for KvUpdate
impl Unpin for KvUpdate
impl UnsafeUnpin for KvUpdate
impl UnwindSafe for KvUpdate
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