Enum twilight_model::voice::CloseCode [−][src]
#[non_exhaustive]
#[repr(u16)]
pub enum CloseCode {
UnknownOpcode,
DecodeError,
NotAuthenticated,
AuthenticationFailed,
AlreadyAuthenticated,
SessionNoLongerValid,
SessionTimedOut,
ServerNotFound,
UnknownProtocol,
Disconnected,
VoiceServerCrashed,
UnknownEncryptionMode,
}Expand description
Voice gateway close event codes.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
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
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for CloseCode
impl UnwindSafe for CloseCode
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more