Enum serenity::model::event::GatewayEvent [−][src]
#[non_exhaustive]
pub enum GatewayEvent {
Dispatch(u64, Event),
Heartbeat(u64),
Reconnect,
InvalidateSession(bool),
Hello(u64),
HeartbeatAck,
}
Variants (Non-exhaustive)
This enum is marked as 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.
Dispatch(u64, Event)
Heartbeat(u64)
Tuple Fields
0: u64
Reconnect
InvalidateSession(bool)
Tuple Fields
0: bool
Whether the session can be resumed.
Hello(u64)
Tuple Fields
0: u64
HeartbeatAck
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more