pub enum ShardStats {
Cumulative {
shard_count: Option<u64>,
guild_count: u64,
},
Shard {
guild_count: u16,
shard_count: u64,
shard_id: u64,
},
Shards(Vec<u64>),
}
Information about one or more shards, used to update a bot's sharding
stats.
Used to post the cumulative guild information for all of the bot.
Fields of Cumulative
The total number of shards in use.
The total number of guilds across the entire bot.
Used to post the guild information for a single shard.
Fields of Shard
The total number of guilds in the shard.
The total number of shards in use.
The ID of the shard being posted for.
Used to post the guild information for all shards.
Each vector index is the shard ID mapped to the number of guilds in the
shard.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more