Struct twilight_cache_inmemory::model::CachedVoiceState
source · pub struct CachedVoiceState { /* private fields */ }
Expand description
Represents a cached VoiceState
.
Implementations§
source§impl CachedVoiceState
impl CachedVoiceState
sourcepub const fn channel_id(&self) -> Id<ChannelMarker>
pub const fn channel_id(&self) -> Id<ChannelMarker>
ID of the channel that this user is connected to.
sourcepub const fn guild_id(&self) -> Id<GuildMarker>
pub const fn guild_id(&self) -> Id<GuildMarker>
ID of the guild that this user is connected in, if there is one.
sourcepub const fn request_to_speak_timestamp(&self) -> Option<Timestamp>
pub const fn request_to_speak_timestamp(&self) -> Option<Timestamp>
Timestamp of when the user requested to speak.
sourcepub const fn self_stream(&self) -> bool
pub const fn self_stream(&self) -> bool
Whether the user is streaming via “Go Live”.
sourcepub const fn self_video(&self) -> bool
pub const fn self_video(&self) -> bool
Whether the user’s camera is enabled.
sourcepub fn session_id(&self) -> &str
pub fn session_id(&self) -> &str
Session ID.
sourcepub const fn user_id(&self) -> Id<UserMarker>
pub const fn user_id(&self) -> Id<UserMarker>
ID of the user.
Trait Implementations§
source§impl Clone for CachedVoiceState
impl Clone for CachedVoiceState
source§fn clone(&self) -> CachedVoiceState
fn clone(&self) -> CachedVoiceState
Returns a copy 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 CachedVoiceState
impl Debug for CachedVoiceState
source§impl PartialEq<CachedVoiceState> for CachedVoiceState
impl PartialEq<CachedVoiceState> for CachedVoiceState
source§fn eq(&self, other: &CachedVoiceState) -> bool
fn eq(&self, other: &CachedVoiceState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<VoiceState> for CachedVoiceState
impl PartialEq<VoiceState> for CachedVoiceState
source§fn eq(&self, other: &VoiceState) -> bool
fn eq(&self, other: &VoiceState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CachedVoiceState
impl Serialize for CachedVoiceState
impl Eq for CachedVoiceState
impl StructuralEq for CachedVoiceState
impl StructuralPartialEq for CachedVoiceState
Auto Trait Implementations§
impl RefUnwindSafe for CachedVoiceState
impl Send for CachedVoiceState
impl Sync for CachedVoiceState
impl Unpin for CachedVoiceState
impl UnwindSafe for CachedVoiceState
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more