pub enum RateLimitResult {
Allowed {
remaining: u32,
reset_at: Instant,
},
Denied {
retry_after: Duration,
limit: u32,
},
}Expand description
Rate limit result
Variants§
Trait Implementations§
Source§impl Clone for RateLimitResult
impl Clone for RateLimitResult
Auto Trait Implementations§
impl Freeze for RateLimitResult
impl RefUnwindSafe for RateLimitResult
impl Send for RateLimitResult
impl Sync for RateLimitResult
impl Unpin for RateLimitResult
impl UnsafeUnpin for RateLimitResult
impl UnwindSafe for RateLimitResult
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