pub struct RateLimiterState {
pub capacity: TokenCount,
/* private fields */
}Expand description
Complete observable RateLimiter state.
Fields§
§capacity: TokenCountPositive bucket capacity.
Implementations§
Trait Implementations§
Source§impl Clone for RateLimiterState
impl Clone for RateLimiterState
Source§fn clone(&self) -> RateLimiterState
fn clone(&self) -> RateLimiterState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RateLimiterState
impl Debug for RateLimiterState
Source§impl PartialEq for RateLimiterState
impl PartialEq for RateLimiterState
impl Copy for RateLimiterState
impl Eq for RateLimiterState
impl StructuralPartialEq for RateLimiterState
Auto Trait Implementations§
impl Freeze for RateLimiterState
impl RefUnwindSafe for RateLimiterState
impl Send for RateLimiterState
impl Sync for RateLimiterState
impl Unpin for RateLimiterState
impl UnsafeUnpin for RateLimiterState
impl UnwindSafe for RateLimiterState
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