[−][src]Enum serenity_voice_model::OpCode
Enum to map voice opcodes.
Variants (Non-exhaustive)
Used to begin a voice websocket connection.
Used to select the voice protocol.
Used to complete the websocket handshake.
Used to keep the websocket connection alive.
Server's confirmation of a negotiated encryption scheme.
Used to indicate which users are speaking, or to inform Discord that the client is now speaking.
Heartbeat ACK, received by the client to show the server's receipt of a heartbeat.
Sent after a disconnect to attempt to resume a session.
Used to determine how often the client must send a heartbeat.
Sent by the server if a session could successfully be resumed.
Message indicating that another user has connected to the voice channel.
Message indicating that another user has disconnected from the voice channel.
Trait Implementations
impl Clone for OpCode
[src]
impl Copy for OpCode
[src]
impl Debug for OpCode
[src]
impl<'de> Deserialize<'de> for OpCode
[src]
pub fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for OpCode
[src]
impl Hash for OpCode
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for OpCode
[src]
pub fn cmp(&self, other: &OpCode) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<OpCode> for OpCode
[src]
pub fn eq(&self, other: &OpCode) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<OpCode> for OpCode
[src]
pub fn partial_cmp(&self, other: &OpCode) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for OpCode
[src]
impl StructuralEq for OpCode
[src]
impl StructuralPartialEq for OpCode
[src]
Auto Trait Implementations
impl RefUnwindSafe for OpCode
[src]
impl Send for OpCode
[src]
impl Sync for OpCode
[src]
impl Unpin for OpCode
[src]
impl UnwindSafe for OpCode
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,