pub struct KvMirror {
pub live: BTreeMap<String, KvEntry>,
pub snapshot_done: bool,
}Expand description
The complete watcher obligation: apply updates, read live.
One mirror per subscription; a re-established connection means a new
KV_OPEN, a new kv_id, and a fresh mirror (nothing survives, the
fs-family rule).
Fields§
§live: BTreeMap<String, KvEntry>§snapshot_done: boolTrue once the initial snapshot is complete (KV_UPDATE_SNAPSHOT_END).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KvMirror
impl RefUnwindSafe for KvMirror
impl Send for KvMirror
impl Sync for KvMirror
impl Unpin for KvMirror
impl UnsafeUnpin for KvMirror
impl UnwindSafe for KvMirror
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