Enum Status
pub enum Status {
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§
§impl PresenceStatus
impl PresenceStatus
pub const fn public(self) -> PresenceStatus
pub const fn public(self) -> PresenceStatus
How others see it: invisible (and a client’s offline) is offline.
Trait Implementations§
§impl Clone for PresenceStatus
impl Clone for PresenceStatus
§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
§impl Debug for PresenceStatus
impl Debug for PresenceStatus
§impl<'de> Deserialize<'de> for PresenceStatus
impl<'de> Deserialize<'de> for PresenceStatus
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PresenceStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PresenceStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PresenceStatus
§impl Hash for PresenceStatus
impl Hash for PresenceStatus
§impl PartialEq for PresenceStatus
impl PartialEq for PresenceStatus
§impl Serialize for PresenceStatus
impl Serialize for PresenceStatus
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CryptoSafe for T
impl<T> CryptoSafe for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more