[−][src]Enum spectacles_model::gateway::CloseCodes
Codes that denote the cause of the gateway closing.
Variants
UnknownErrorThe cause of the error is unknown.
UnknownOpcodeThe opcode or the payload for an opcode sent was invalid.
DecodeErrorAn invalid payload was sent.
NotAuthenticatedA payload was sent prior to identifying.
AuthenticationFailedThe token sent with the payload was invalid.
AlreadyAuthenticatedMore than one identify payload was sent.
InvalidSeqThe sequence sent when resuming the session was invalid.
RatelimitedA ratelimit caused by sending payloads too quickly.
SessionTimeoutThe session timed out, a reconnect is required.
InvalidShardAn invalid shard was sent when identifying.
ShardingRequiredThe 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(&self) -> 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]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for CloseCodes
impl Sync for CloseCodes
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,