Struct serenity::client::bridge::gateway::event::ShardStageUpdateEvent [−][src]
pub struct ShardStageUpdateEvent { pub new: ConnectionStage, pub old: ConnectionStage, pub shard_id: ShardId, }
An event denoting that a shard's connection stage was changed.
Examples
This might happen when a shard changes from ConnectionStage::Identifying
to ConnectionStage::Connected
.
Fields
new: ConnectionStage
The new connection stage.
old: ConnectionStage
The old connection stage.
The ID of the shard that had its connection stage change.
Trait Implementations
impl Clone for ShardStageUpdateEvent
[src]
impl Clone for ShardStageUpdateEvent
fn clone(&self) -> ShardStageUpdateEvent
[src]
fn clone(&self) -> ShardStageUpdateEvent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ShardStageUpdateEvent
[src]
impl Debug for ShardStageUpdateEvent
Auto Trait Implementations
impl Send for ShardStageUpdateEvent
impl Send for ShardStageUpdateEvent
impl Sync for ShardStageUpdateEvent
impl Sync for ShardStageUpdateEvent