Enum twilight_model::gateway::event::gateway::GatewayEvent
source · pub enum GatewayEvent {
Dispatch(u64, DispatchEvent),
Heartbeat(u64),
HeartbeatAck,
Hello(Hello),
InvalidateSession(bool),
Reconnect,
}
Expand description
An event from the gateway, which can either be a dispatch event with stateful updates or a heartbeat, hello, etc. that a shard needs to operate.
Variants§
Dispatch(u64, DispatchEvent)
Heartbeat(u64)
HeartbeatAck
Hello(Hello)
InvalidateSession(bool)
Reconnect
Trait Implementations§
source§impl Clone for GatewayEvent
impl Clone for GatewayEvent
source§fn clone(&self) -> GatewayEvent
fn clone(&self) -> GatewayEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GatewayEvent
impl Debug for GatewayEvent
source§impl From<GatewayEvent> for Event
impl From<GatewayEvent> for Event
source§fn from(event: GatewayEvent) -> Self
fn from(event: GatewayEvent) -> Self
Converts to this type from the input type.