[−][src]Enum twilight_model::voice::CloseCode
Voice gateway close event codes.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
An invalid opcode was sent.
An invalid payload was sent.
A payload was sent prior to identifying.
An invalid token was sent when identifying.
Multiple identify payloads were sent.
The session was invalidated.
The session timed out.
The specified voice server was not found.
An unknown protocol was sent.
Disconnected from the voice channel.
The voice server crashed.
The encryption could not be recognised.
Trait Implementations
impl Clone for CloseCode
[src]
impl Copy for CloseCode
[src]
impl Debug for CloseCode
[src]
impl<'de> Deserialize<'de> for CloseCode
[src]
pub fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for CloseCode
[src]
impl Hash for CloseCode
[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 CloseCode
[src]
pub fn cmp(&self, other: &CloseCode) -> 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<CloseCode> for CloseCode
[src]
pub fn eq(&self, other: &CloseCode) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<CloseCode> for CloseCode
[src]
pub fn partial_cmp(&self, other: &CloseCode) -> 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 CloseCode
[src]
impl StructuralEq for CloseCode
[src]
impl StructuralPartialEq for CloseCode
[src]
impl TryFrom<u16> for CloseCode
[src]
Auto Trait Implementations
impl RefUnwindSafe for CloseCode
[src]
impl Send for CloseCode
[src]
impl Sync for CloseCode
[src]
impl Unpin for CloseCode
[src]
impl UnwindSafe for CloseCode
[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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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>,