pub enum CursorsEvent {
Snapshot(PeerCursors),
Advanced(PeerCursors),
}Expand description
An event from watch_cursors.
First event is a full Snapshot, later events Advanced deltas of the
origins that moved; fold each in by pointwise max. Carrying cursor state
(not entries) makes it loss-tolerant: a dropped or coalesced event costs
nothing — the next one still names the current position, and the gap is
refetched via read_since.
Variants§
Snapshot(PeerCursors)
Full cursor vector at subscription time.
Advanced(PeerCursors)
Origins that advanced since the last event, mapped to their new index.
Trait Implementations§
Source§impl Clone for CursorsEvent
impl Clone for CursorsEvent
Source§fn clone(&self) -> CursorsEvent
fn clone(&self) -> CursorsEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CursorsEvent
impl RefUnwindSafe for CursorsEvent
impl Send for CursorsEvent
impl Sync for CursorsEvent
impl Unpin for CursorsEvent
impl UnsafeUnpin for CursorsEvent
impl UnwindSafe for CursorsEvent
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