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§
Source§impl Clone for ShardStageUpdateEvent
impl Clone for ShardStageUpdateEvent
Source§fn clone(&self) -> ShardStageUpdateEvent
fn clone(&self) -> ShardStageUpdateEvent
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 moreAuto Trait Implementations§
impl Freeze for ShardStageUpdateEvent
impl RefUnwindSafe for ShardStageUpdateEvent
impl Send for ShardStageUpdateEvent
impl Sync for ShardStageUpdateEvent
impl Unpin for ShardStageUpdateEvent
impl UnwindSafe for ShardStageUpdateEvent
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