Struct serenity::client::bridge::gateway::event::ShardStageUpdateEvent [−][src]
pub struct ShardStageUpdateEvent {
pub new: ConnectionStage,
pub old: ConnectionStage,
pub shard_id: ShardId,
}
Expand description
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.
shard_id: ShardId
The ID of the shard that had its connection stage change.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ShardStageUpdateEvent
impl Send for ShardStageUpdateEvent
impl Sync for ShardStageUpdateEvent
impl Unpin for ShardStageUpdateEvent
impl UnwindSafe for ShardStageUpdateEvent
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