pub enum SubscriptionItem {
Snapshot(Box<SessionSnapshot>),
Event(EventEnvelope<RealtimeEvent>),
ResyncRequired,
}Expand description
Items a subscription yields: the authoritative Snapshot first, then
live Events. ResyncRequired appears when the consumer lagged past the
broadcast capacity; the following next() returns a fresh Snapshot.
Events between the initial registration and the snapshot (or spanning a
resync) can be delivered both in a snapshot and as events; consumers
dedupe by (revision, run_seq) (SPEC §5.3 allows this interpretation).
Variants§
Auto Trait Implementations§
impl Freeze for SubscriptionItem
impl RefUnwindSafe for SubscriptionItem
impl Send for SubscriptionItem
impl Sync for SubscriptionItem
impl Unpin for SubscriptionItem
impl UnsafeUnpin for SubscriptionItem
impl UnwindSafe for SubscriptionItem
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