pub struct RateLimit { /* private fields */ }Expand description
Rate limit counters.
Implementations§
Source§impl RateLimit
impl RateLimit
Sourcepub const fn is_exhausted(self) -> bool
pub const fn is_exhausted(self) -> bool
Returns true when no quota remains.
Sourcepub const fn has_remaining(self) -> bool
pub const fn has_remaining(self) -> bool
Returns true when quota remains.
Trait Implementations§
Source§impl Ord for RateLimit
impl Ord for RateLimit
Source§impl PartialOrd for RateLimit
impl PartialOrd for RateLimit
impl Copy for RateLimit
impl Eq for RateLimit
impl StructuralPartialEq for RateLimit
Auto Trait Implementations§
impl Freeze for RateLimit
impl RefUnwindSafe for RateLimit
impl Send for RateLimit
impl Sync for RateLimit
impl Unpin for RateLimit
impl UnsafeUnpin for RateLimit
impl UnwindSafe for RateLimit
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