pub struct PresenceDiff {
pub joins: PresenceState,
pub leaves: PresenceState,
}Expand description
Presence joins and leaves produced by a state or diff synchronization.
Fields§
§joins: PresenceStateEntries or metas that joined.
leaves: PresenceStateEntries or metas that left.
Implementations§
Source§impl PresenceDiff
impl PresenceDiff
Sourcepub fn from_value(value: &Value) -> Result<Self, PresenceError>
pub fn from_value(value: &Value) -> Result<Self, PresenceError>
Decodes a presence_diff JSON object.
Trait Implementations§
Source§impl Clone for PresenceDiff
impl Clone for PresenceDiff
Source§fn clone(&self) -> PresenceDiff
fn clone(&self) -> PresenceDiff
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 PresenceDiff
impl Debug for PresenceDiff
Source§impl Default for PresenceDiff
impl Default for PresenceDiff
Source§fn default() -> PresenceDiff
fn default() -> PresenceDiff
Returns the “default value” for a type. Read more
Source§impl PartialEq for PresenceDiff
impl PartialEq for PresenceDiff
Source§fn eq(&self, other: &PresenceDiff) -> bool
fn eq(&self, other: &PresenceDiff) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PresenceDiff
Auto Trait Implementations§
impl Freeze for PresenceDiff
impl RefUnwindSafe for PresenceDiff
impl Send for PresenceDiff
impl Sync for PresenceDiff
impl Unpin for PresenceDiff
impl UnsafeUnpin for PresenceDiff
impl UnwindSafe for PresenceDiff
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