pub struct RateLimitOutcome {
pub allowed: bool,
pub remaining: u32,
pub capacity: u32,
pub retry_after_secs: u64,
}Expand description
Result of one rate-limit decision.
Fields§
§allowed: boolWhether the request may continue.
remaining: u32Tokens remaining after this decision.
capacity: u32Maximum bucket capacity.
retry_after_secs: u64Delay before a rejected client should retry.
Trait Implementations§
Source§impl Clone for RateLimitOutcome
impl Clone for RateLimitOutcome
Source§impl Debug for RateLimitOutcome
impl Debug for RateLimitOutcome
impl Eq for RateLimitOutcome
Source§impl PartialEq for RateLimitOutcome
impl PartialEq for RateLimitOutcome
impl StructuralPartialEq for RateLimitOutcome
Auto Trait Implementations§
impl Freeze for RateLimitOutcome
impl RefUnwindSafe for RateLimitOutcome
impl Send for RateLimitOutcome
impl Sync for RateLimitOutcome
impl Unpin for RateLimitOutcome
impl UnsafeUnpin for RateLimitOutcome
impl UnwindSafe for RateLimitOutcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more