Struct serenity::client::bridge::gateway::ShardRunnerInfo[][src]

pub struct ShardRunnerInfo {
    pub latency: Option<StdDuration>,
    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<StdDuration>

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

Performs the conversion.

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.