pub struct LargeBotQueue { /* private fields */ }
Expand description

Queue built for single-process clusters that require identifying via Sharding for Very Large Bots.

Usage with other processes will cause inconsistencies between each process cluster’s ratelimit buckets. If you use multiple processes for clusters, then refer to the module-level documentation.

Implementations

Available on crate features native or rustls-native-roots or rustls-webpki-roots only.

Create a new large bot queue.

You must provide the number of buckets Discord requires your bot to connect with.

Trait Implementations

Formats the value using the given formatter. Read more

Request to be able to identify with the gateway. This will place this request behind all other requests, and the returned future will resolve once the request has been completed.

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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more