pub struct CachedPresence { /* private fields */ }Expand description
Represents a cached Presence.
Implementations§
Source§impl CachedPresence
impl CachedPresence
Sourcepub fn activities(&self) -> &[Activity]
pub fn activities(&self) -> &[Activity]
Current activities.
Sourcepub const fn client_status(&self) -> &ClientStatus
pub const fn client_status(&self) -> &ClientStatus
Platform-dependent status.
Trait Implementations§
Source§impl Clone for CachedPresence
impl Clone for CachedPresence
Source§fn clone(&self) -> CachedPresence
fn clone(&self) -> CachedPresence
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 CachedPresence
impl Debug for CachedPresence
Source§impl From<Presence> for CachedPresence
impl From<Presence> for CachedPresence
Source§impl PartialEq<Presence> for CachedPresence
impl PartialEq<Presence> for CachedPresence
Source§impl PartialEq for CachedPresence
impl PartialEq for CachedPresence
Source§impl Serialize for CachedPresence
impl Serialize for CachedPresence
impl CacheablePresence for CachedPresence
impl Eq for CachedPresence
impl StructuralPartialEq for CachedPresence
Auto Trait Implementations§
impl Freeze for CachedPresence
impl RefUnwindSafe for CachedPresence
impl Send for CachedPresence
impl Sync for CachedPresence
impl Unpin for CachedPresence
impl UnwindSafe for CachedPresence
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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