pub enum UpdateKind {
Snapshot,
RealTime,
}Expand description
Whether an update carries part of an item’s initial state or a live change.
U carries both: “the notification is also used to send the item’s
snapshot” [docs/spec/04-notifications.md §2.1], and telling them apart is
a function of four inputs, tabulated in
[docs/spec/04-notifications.md §2.4].
Variants§
Snapshot
Part of the item’s initial state, delivered because the subscription asked for a snapshot.
A snapshot may be one U (MERGE) or many (DISTINCT, COMMAND),
and in the latter case its end is announced by an end-of-snapshot event
[docs/spec/04-notifications.md §3.5]. RAW has no snapshot at all.
RealTime
A live change to the item, produced after its initial state.
Implementations§
Source§impl UpdateKind
impl UpdateKind
Sourcepub const fn is_snapshot(self) -> bool
pub const fn is_snapshot(self) -> bool
Whether this is snapshot content.
Trait Implementations§
Source§impl Clone for UpdateKind
impl Clone for UpdateKind
Source§fn clone(&self) -> UpdateKind
fn clone(&self) -> UpdateKind
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 moreimpl Copy for UpdateKind
Source§impl Debug for UpdateKind
impl Debug for UpdateKind
impl Eq for UpdateKind
Source§impl Hash for UpdateKind
impl Hash for UpdateKind
Source§impl PartialEq for UpdateKind
impl PartialEq for UpdateKind
impl StructuralPartialEq for UpdateKind
Auto Trait Implementations§
impl Freeze for UpdateKind
impl RefUnwindSafe for UpdateKind
impl Send for UpdateKind
impl Sync for UpdateKind
impl Unpin for UpdateKind
impl UnsafeUnpin for UpdateKind
impl UnwindSafe for UpdateKind
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