Enum twilight_model::gateway::event::gateway::GatewayEvent [−][src]
pub enum GatewayEvent { Dispatch(u64, Box<DispatchEvent>), Heartbeat(u64), HeartbeatAck, Hello(u64), 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, Box<DispatchEvent>)
Heartbeat(u64)
Hello(u64)
InvalidateSession(bool)
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for GatewayEvent
impl Send for GatewayEvent
impl Sync for GatewayEvent
impl Unpin for GatewayEvent
impl UnwindSafe for GatewayEvent
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more