pub struct VoiceStateUpdate(pub VoiceState);Expand description
The data of the Voice State Update dispatch event: someone joined, left or moved between voice channels.
discord.js counterpart: the VoiceStateUpdate event.
Dereferences to the contained VoiceState.
Tuple Fields§
§0: VoiceStateTrait Implementations§
Source§impl Clone for VoiceStateUpdate
impl Clone for VoiceStateUpdate
Source§impl Debug for VoiceStateUpdate
impl Debug for VoiceStateUpdate
Source§impl Deref for VoiceStateUpdate
impl Deref for VoiceStateUpdate
Source§type Target = VoiceState
type Target = VoiceState
The resulting type after dereferencing.
Source§fn deref(&self) -> &VoiceState
fn deref(&self) -> &VoiceState
Dereferences the value.
Source§impl DerefMut for VoiceStateUpdate
impl DerefMut for VoiceStateUpdate
Source§fn deref_mut(&mut self) -> &mut VoiceState
fn deref_mut(&mut self) -> &mut VoiceState
Mutably dereferences the value.
Source§impl<'de> Deserialize<'de> for VoiceStateUpdate
impl<'de> Deserialize<'de> for VoiceStateUpdate
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
Source§impl From<VoiceStateUpdate> for VoiceState
impl From<VoiceStateUpdate> for VoiceState
Source§fn from(event: VoiceStateUpdate) -> Self
fn from(event: VoiceStateUpdate) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VoiceStateUpdate
impl PartialEq for VoiceStateUpdate
Source§impl Serialize for VoiceStateUpdate
impl Serialize for VoiceStateUpdate
impl StructuralPartialEq for VoiceStateUpdate
Auto Trait Implementations§
impl Freeze for VoiceStateUpdate
impl RefUnwindSafe for VoiceStateUpdate
impl Send for VoiceStateUpdate
impl Sync for VoiceStateUpdate
impl Unpin for VoiceStateUpdate
impl UnsafeUnpin for VoiceStateUpdate
impl UnwindSafe for VoiceStateUpdate
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