pub enum PresenceUpdate {
Ignored,
Pending,
Synced(PresenceDiff),
}Expand description
Result of applying a frame to a PresenceTracker.
Variants§
Ignored
The frame was not a configured Presence event.
Pending
A diff was queued until a matching full state arrives.
Synced(PresenceDiff)
State was updated with the returned joins and leaves.
Trait Implementations§
Source§impl Clone for PresenceUpdate
impl Clone for PresenceUpdate
Source§fn clone(&self) -> PresenceUpdate
fn clone(&self) -> PresenceUpdate
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 moreSource§impl Debug for PresenceUpdate
impl Debug for PresenceUpdate
Source§impl PartialEq for PresenceUpdate
impl PartialEq for PresenceUpdate
Source§fn eq(&self, other: &PresenceUpdate) -> bool
fn eq(&self, other: &PresenceUpdate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PresenceUpdate
Auto Trait Implementations§
impl Freeze for PresenceUpdate
impl RefUnwindSafe for PresenceUpdate
impl Send for PresenceUpdate
impl Sync for PresenceUpdate
impl Unpin for PresenceUpdate
impl UnsafeUnpin for PresenceUpdate
impl UnwindSafe for PresenceUpdate
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