Enum serenity::model::event::VoiceEvent [−][src]
pub enum VoiceEvent { Heartbeat(VoiceHeartbeat), Hello(VoiceHello), KeepAlive, Ready(VoiceSessionDescription), Speaking(VoiceSpeaking), Unknown(VoiceOpCode, Value), }
A representation of data received for voice
events.
Variants
Heartbeat(VoiceHeartbeat)
A voice heartbeat.
Hello(VoiceHello)
A "hello" was received with initial voice data, such as the
heartbeat_interval
.
KeepAlive
A simple keepalive event.
Ready(VoiceSessionDescription)
A voice event describing the current session.
Speaking(VoiceSpeaking)
A voice event denoting that someone is speaking.
Unknown(VoiceOpCode, Value)
An unknown voice event not registered.
Trait Implementations
impl Clone for VoiceEvent
[src]
impl Clone for VoiceEvent
fn clone(&self) -> VoiceEvent
[src]
fn clone(&self) -> VoiceEvent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for VoiceEvent
[src]
impl Debug for VoiceEvent
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'de> Deserialize<'de> for VoiceEvent
[src]
impl<'de> Deserialize<'de> for VoiceEvent
fn deserialize<D>(deserializer: D) -> StdResult<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> StdResult<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl Send for VoiceEvent
impl Send for VoiceEvent
impl Sync for VoiceEvent
impl Sync for VoiceEvent