pub enum PresenceStatus {
Online,
Idle,
Dnd,
Invisible,
Offline,
}Expand description
Presence status (§10.5), in the §7 tagged form. A client sends online, idle, dnd or
invisible (offline from a client means invisible); others only ever see online,
idle, dnd and offline (invisible members and members without a connection).
Variants§
Online
Active.
Idle
Away.
Dnd
Do not disturb.
Invisible
Shown as offline to everyone else, while connected.
Offline
Not connected (or invisible, as others see it).
Implementations§
Trait Implementations§
Source§impl Clone for PresenceStatus
impl Clone for PresenceStatus
Source§fn clone(&self) -> PresenceStatus
fn clone(&self) -> PresenceStatus
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 PresenceStatus
Source§impl Debug for PresenceStatus
impl Debug for PresenceStatus
Source§impl<'de> Deserialize<'de> for PresenceStatus
impl<'de> Deserialize<'de> for PresenceStatus
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
impl Eq for PresenceStatus
Source§impl Hash for PresenceStatus
impl Hash for PresenceStatus
Source§impl PartialEq for PresenceStatus
impl PartialEq for PresenceStatus
Source§impl Serialize for PresenceStatus
impl Serialize for PresenceStatus
impl StructuralPartialEq for PresenceStatus
Auto Trait Implementations§
impl Freeze for PresenceStatus
impl RefUnwindSafe for PresenceStatus
impl Send for PresenceStatus
impl Sync for PresenceStatus
impl Unpin for PresenceStatus
impl UnsafeUnpin for PresenceStatus
impl UnwindSafe for PresenceStatus
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