Enum twilight_http::ratelimiting::headers::HeaderName [−][src]
#[non_exhaustive]
pub enum HeaderName {
Bucket,
Global,
Limit,
Remaining,
ResetAfter,
Reset,
RetryAfter,
}Expand description
Typed name of a header.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Information about the ratelimit bucket.
Global header.
Maximum requests allotted in the bucket.
Remaining requested allotted.
How long until the bucket is reset.
When the bucket resets.
How long until a request can be tried again.
Implementations
Lowercased name for the reset-after header.
Lowercased name for the retry-after header.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HeaderName
impl Send for HeaderName
impl Sync for HeaderName
impl Unpin for HeaderName
impl UnwindSafe for HeaderName
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
pub fn vzip(self) -> V
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