#[repr(u8)]pub enum PresenceAction {
Join = 0,
Leave = 1,
Update = 2,
Sync = 3,
}Expand description
Presence action types.
Variants§
Join = 0
Client joined the channel.
Leave = 1
Client left the channel.
Update = 2
Client updated their presence data.
Sync = 3
Server sending full presence state sync.
Trait Implementations§
Source§impl Clone for PresenceAction
impl Clone for PresenceAction
Source§fn clone(&self) -> PresenceAction
fn clone(&self) -> PresenceAction
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 PresenceAction
impl Debug for PresenceAction
Source§impl<'de> Deserialize<'de> for PresenceAction
impl<'de> Deserialize<'de> for PresenceAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PresenceAction> for u8
impl From<PresenceAction> for u8
Source§fn from(pa: PresenceAction) -> u8
fn from(pa: PresenceAction) -> u8
Converts to this type from the input type.
Source§impl Hash for PresenceAction
impl Hash for PresenceAction
Source§impl PartialEq for PresenceAction
impl PartialEq for PresenceAction
Source§impl Serialize for PresenceAction
impl Serialize for PresenceAction
Source§impl TryFrom<u8> for PresenceAction
impl TryFrom<u8> for PresenceAction
impl Copy for PresenceAction
impl Eq for PresenceAction
impl StructuralPartialEq for PresenceAction
Auto Trait Implementations§
impl Freeze for PresenceAction
impl RefUnwindSafe for PresenceAction
impl Send for PresenceAction
impl Sync for PresenceAction
impl Unpin for PresenceAction
impl UnwindSafe for PresenceAction
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