Enum twilight_model::gateway::CloseCode [−][src]
#[non_exhaustive]
#[repr(u16)]
pub enum CloseCode {
Show 14 variants
UnknownError,
UnknownOpcode,
DecodeError,
NotAuthenticated,
AuthenticationFailed,
AlreadyAuthenticated,
InvalidSequence,
RateLimited,
SessionTimedOut,
InvalidShard,
ShardingRequired,
InvalidApiVersion,
InvalidIntents,
DisallowedIntents,
}Expand description
Gateway close event codes.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
An unknown error occurred.
An invalid opcode or payload for an 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.
An invalid sequence was sent for resuming.
Too many payloads were sent in a certain amount of time.
The session timed out.
An invalid shard was sent when identifying.
Sharding is required because there are too many guilds.
An invalid version for the gateway was sent.
An invalid intent was sent.
A disallowed intent was sent, may need allowlisting.
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