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.
source§impl Serialize for GatewayEvent
impl Serialize for GatewayEvent
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more