Struct serenity::http::ratelimiting::Ratelimit [−][src]
pub struct Ratelimit { /* fields omitted */ }
Expand description
A set of data containing information about the ratelimits for a particular
Route
, which is stored in Http
.
See the Discord docs on ratelimits for more information.
Note: You should not mutate any of the fields, as this can help cause 429s.
Implementations
The absolute time in milliseconds when the interval resets.
The total time in milliseconds when the interval resets.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Ratelimit
impl UnwindSafe for Ratelimit
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
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