[][src]Enum twilight_model::gateway::event::shard::ShardEvent

pub enum ShardEvent {
    Connected(Connected),
    Connecting(Connecting),
    Disconnected(Disconnected),
    Identifying(Identifying),
    Payload(Payload),
    Reconnecting(Reconnecting),
    Resuming(Resuming),
}

"Meta" events about a shard's status, not from the gateway.

Variants

Connected(Connected)

A shard is now in a Connected stage after being fully connected to the gateway.

Connecting(Connecting)

A shard is now in a Connecting stage after starting to connect to the gateway.

Disconnected(Disconnected)

A shard is now in a Disconnected stage after the connection was closed.

Identifying(Identifying)

A shard is now in a Identifying stage after starting a new session.

Payload(Payload)

A payload of bytes came in through the shard's connection.

Reconnecting(Reconnecting)

A shard is now in a Reconnecting stage after a disconnect or session was ended.

Resuming(Resuming)

A shard is now in a Resuming stage after a disconnect.

Trait Implementations

impl Clone for ShardEvent[src]

impl Debug for ShardEvent[src]

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

impl Eq for ShardEvent[src]

impl From<ShardEvent> for Event[src]

impl PartialEq<ShardEvent> for ShardEvent[src]

impl Serialize for ShardEvent[src]

impl StructuralEq for ShardEvent[src]

impl StructuralPartialEq for ShardEvent[src]

impl TryFrom<Event> for ShardEvent[src]

type Error = EventConversionError

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<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.