Enum twilight_http::ratelimiting::RatelimitHeaders [−][src]
#[non_exhaustive] pub enum RatelimitHeaders { GlobalLimited { reset_after: u64, }, None, Present { bucket: Option<String>, global: bool, limit: u64, remaining: u64, reset: u64, reset_after: u64, }, }
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.
Show fields
Fields of GlobalLimited
reset_after: u64
Number of seconds until the global ratelimit resets.
Show fields
Implementations
Trait Implementations
type Error = RatelimitError
type Error = RatelimitError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for RatelimitHeaders
impl Send for RatelimitHeaders
impl Sync for RatelimitHeaders
impl Unpin for RatelimitHeaders
impl UnwindSafe for RatelimitHeaders
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