pub struct Entry<T>{
pub max_count: u64,
pub count: AtomicU64,
pub value: T,
}Expand description
A single entry in the LimitLoadBalancer.
Tracks the maximum number of allowed allocations within the interval and the current allocation count.
Fields§
§max_count: u64Maximum number of allocations allowed for this entry in the interval.
count: AtomicU64Current allocation count within the interval.
value: TThe underlying value/resource of type T.
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Entry<T>
impl<T> RefUnwindSafe for Entry<T>where
T: RefUnwindSafe,
impl<T> Send for Entry<T>
impl<T> Sync for Entry<T>
impl<T> Unpin for Entry<T>where
T: Unpin,
impl<T> UnwindSafe for Entry<T>where
T: UnwindSafe,
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