Struct twilight_model::gateway::connection_info::BotConnectionInfo [−][src]
pub struct BotConnectionInfo {
pub session_start_limit: SessionStartLimit,
pub shards: u64,
pub url: String,
}Expand description
Gateway information containing the recommended shard count and session availability.
Fields
session_start_limit: SessionStartLimitCurrent session availability and session connection concurrency limits.
shards: u64Recommended shard count to use.
url: StringURL to the gateway.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for BotConnectionInfoimpl Send for BotConnectionInfoimpl Sync for BotConnectionInfoimpl Unpin for BotConnectionInfoimpl UnwindSafe for BotConnectionInfoBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more