Struct twilight_http::ratelimiting::Ratelimiter [−][src]
pub struct Ratelimiter { /* fields omitted */ }
Implementations
Create a new ratelimiter.
Most users won’t need to use this directly. If you’re creating your own HTTP proxy then this is good to use for your own ratelimiting.
Provide an estimate for the time left until a path can be used without being ratelimited.
This method is not guaranteed to be accurate and may return None if either no ratelimit is known or buckets are remaining.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Ratelimiter
impl Send for Ratelimiter
impl Sync for Ratelimiter
impl Unpin for Ratelimiter
impl !UnwindSafe for Ratelimiter
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V