[−][src]Enum twilight_model::gateway::CloseCode
Gateway close event codes.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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
impl Clone for CloseCode
[src]
impl Copy for CloseCode
[src]
impl Debug for CloseCode
[src]
impl<'de> Deserialize<'de> for CloseCode
[src]
pub fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for CloseCode
[src]
impl Hash for CloseCode
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for CloseCode
[src]
pub fn cmp(&self, other: &CloseCode) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[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 PartialOrd<CloseCode> for CloseCode
[src]
pub fn partial_cmp(&self, other: &CloseCode) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for CloseCode
[src]
impl StructuralEq for CloseCode
[src]
impl StructuralPartialEq for CloseCode
[src]
impl TryFrom<u16> 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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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>,