[][src]Enum twilight_gateway::shard::stage::Stage

#[non_exhaustive]
#[repr(u8)]pub enum Stage {
    Connected,
    Disconnected,
    Handshaking,
    Identifying,
    Resuming,
}

The current connection stage of a Shard.

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.
Connected

Indicator that a shard is now fully connected to the gateway.

Disconnected

Indicator that a shard is now disconnected and may or may not reconnect based on whether the connection was explicitly shutdown.

Handshaking

Indicator that a shard is now handshaking with the gateway to initiate a connection.

Identifying

Indicator that a shard is now identifying with the gateway to make a new session.

Resuming

Indicator that a shard is now resuming a session.

Trait Implementations

impl Clone for Stage[src]

impl Copy for Stage[src]

impl Debug for Stage[src]

impl Default for Stage[src]

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

impl Display for Stage[src]

impl Eq for Stage[src]

impl Hash for Stage[src]

impl Ord for Stage[src]

impl PartialEq<Stage> for Stage[src]

impl PartialOrd<Stage> for Stage[src]

impl Serialize for Stage[src]

impl StructuralEq for Stage[src]

impl StructuralPartialEq for Stage[src]

impl TryFrom<u8> for Stage[src]

type Error = StageConversionError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,