[−][src]Enum serenity_voice_model::CloseCode
Discord Voice Gateway Websocket close codes.
Variants
Invalid Voice OP Code.
Invalid identification payload sent.
A payload was sent prior to identifying.
The account token sent with the identify payload was incorrect.
More than one identify payload was sent.
The session is no longer valid.
A session timed out.
The server for the last connection attempt could not be found.
Discord did not recognise the voice protocol chosen.
Disconnected, either due to channel closure/removal or kicking.
Should not reconnect.
Connected voice server crashed.
Should resume.
Discord didn't recognise the encryption scheme.
Implementations
impl CloseCode
[src]
pub fn should_resume(&self) -> bool
[src]
Indicates whether a voice client should attempt to reconnect in response to this close code.
Otherwise, the connection should be closed.
Trait Implementations
impl Clone for CloseCode
[src]
impl Copy for CloseCode
[src]
impl Debug for CloseCode
[src]
impl Eq for CloseCode
[src]
impl FromPrimitive for CloseCode
[src]
pub fn from_i64(n: i64) -> Option<Self>
[src]
pub fn from_u64(n: u64) -> Option<Self>
[src]
pub fn from_isize(n: isize) -> Option<Self>
[src]
pub fn from_i8(n: i8) -> Option<Self>
[src]
pub fn from_i16(n: i16) -> Option<Self>
[src]
pub fn from_i32(n: i32) -> Option<Self>
[src]
pub fn from_i128(n: i128) -> Option<Self>
[src]
pub fn from_usize(n: usize) -> Option<Self>
[src]
pub fn from_u8(n: u8) -> Option<Self>
[src]
pub fn from_u16(n: u16) -> Option<Self>
[src]
pub fn from_u32(n: u32) -> Option<Self>
[src]
pub fn from_u128(n: u128) -> Option<Self>
[src]
pub fn from_f32(n: f32) -> Option<Self>
[src]
pub fn from_f64(n: f64) -> Option<Self>
[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 StructuralEq for CloseCode
[src]
impl StructuralPartialEq 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> 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>,