pub struct PresenceState(pub PresenceStateInner);Expand description
PresenceState triple nested hashmap.
Layout: HashMap<id, HashMap<phx_ref, HashMap<key, value>>> { [id]: { [ref]: { [key]: value } } }
Tuple Fields§
§0: PresenceStateInnerImplementations§
Source§impl PresenceState
impl PresenceState
Sourcepub fn get_phx_map(&self) -> PhxMap
pub fn get_phx_map(&self) -> PhxMap
Returns a once flattened map of presence data: HashMap<phx_ref, Hashmap<key, value>>
Trait Implementations§
Source§impl Clone for PresenceState
impl Clone for PresenceState
Source§fn clone(&self) -> PresenceState
fn clone(&self) -> PresenceState
Returns a duplicate of the value. Read more
1.0.0 · 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 PresenceState
impl Debug for PresenceState
Source§impl Default for PresenceState
impl Default for PresenceState
Source§fn default() -> PresenceState
fn default() -> PresenceState
Returns the “default value” for a type. Read more
Source§impl From<HashMap<String, RawPresenceMetas>> for PresenceState
impl From<HashMap<String, RawPresenceMetas>> for PresenceState
Source§fn from(val: RawPresenceState) -> Self
fn from(val: RawPresenceState) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PresenceState
impl RefUnwindSafe for PresenceState
impl Send for PresenceState
impl Sync for PresenceState
impl Unpin for PresenceState
impl UnwindSafe for PresenceState
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