[][src]Enum spectacles_model::gateway::CloseCodes

#[repr(u16)]
pub enum CloseCodes { UnknownError, UnknownOpcode, DecodeError, NotAuthenticated, AuthenticationFailed, AlreadyAuthenticated, InvalidSeq, Ratelimited, SessionTimeout, InvalidShard, ShardingRequired, }

Codes that denote the cause of the gateway closing.

Variants

UnknownError

The cause of the error is unknown.

UnknownOpcode

The opcode or the payload for an opcode sent was invalid.

DecodeError

An invalid payload was sent.

NotAuthenticated

A payload was sent prior to identifying.

AuthenticationFailed

The token sent with the payload was invalid.

AlreadyAuthenticated

More than one identify payload was sent.

InvalidSeq

The sequence sent when resuming the session was invalid.

Ratelimited

A ratelimit caused by sending payloads too quickly.

SessionTimeout

The session timed out, a reconnect is required.

InvalidShard

An invalid shard was sent when identifying.

ShardingRequired

The session would have had too many guilds, which indicated that sharding is required.

Trait Implementations

impl Copy for CloseCodes[src]

impl Clone for CloseCodes[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for CloseCodes[src]

impl<'de> Deserialize<'de> for CloseCodes[src]

Auto Trait Implementations

impl Send for CloseCodes

impl Sync for CloseCodes

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]