pub struct ShardRunnerInfo {
pub latency: Option<Duration>,
pub runner_tx: ShardMessenger,
pub stage: ConnectionStage,
}
Expand description
Information about a ShardRunner
.
The ShardId
is not included because, as it stands, you probably already know the Id if you
obtained this.
Fields§
§latency: Option<Duration>
The latency between when a heartbeat was sent and when the acknowledgement was received.
runner_tx: ShardMessenger
The channel used to communicate with the shard runner, telling it what to do with regards to its status.
stage: ConnectionStage
The current connection stage of the shard.
Trait Implementations§
Source§impl AsRef<ShardMessenger> for ShardRunnerInfo
impl AsRef<ShardMessenger> for ShardRunnerInfo
Source§fn as_ref(&self) -> &ShardMessenger
fn as_ref(&self) -> &ShardMessenger
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for ShardRunnerInfo
impl !RefUnwindSafe for ShardRunnerInfo
impl Send for ShardRunnerInfo
impl Sync for ShardRunnerInfo
impl Unpin for ShardRunnerInfo
impl !UnwindSafe for ShardRunnerInfo
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