pub struct VoiceState {
pub member: Member,
pub channel: Channel,
pub joined: bool,
pub left: Option<VoiceLeave>,
pub mute: Option<VoiceMute>,
}Expand description
Someone’s state in a voice channel.
Fields§
§member: MemberWho.
channel: ChannelThe voice channel.
joined: boolThey joined it now.
left: Option<VoiceLeave>They left it now: why, and where to, when a moderator moved them.
mute: Option<VoiceMute>Their mute and deafen state; None when they left.
Trait Implementations§
Source§impl Clone for VoiceState
impl Clone for VoiceState
Source§fn clone(&self) -> VoiceState
fn clone(&self) -> VoiceState
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 moreAuto Trait Implementations§
impl Freeze for VoiceState
impl RefUnwindSafe for VoiceState
impl Send for VoiceState
impl Sync for VoiceState
impl Unpin for VoiceState
impl UnsafeUnpin for VoiceState
impl UnwindSafe for VoiceState
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