pub struct Entry<T>{
pub max_count: u64,
pub max_error_count: u64,
pub count: AtomicU64,
pub error_count: AtomicU64,
pub value: T,
}Expand description
Represents a single entry in the threshold load balancer. Tracks the maximum allowed requests, maximum errors, current usage count, and error count.
Fields§
§max_count: u64Maximum number of allocations per interval.
max_error_count: u64Maximum number of allowed errors before the entry is considered disabled.
count: AtomicU64Current allocation count.
error_count: AtomicU64Current error count.
value: TThe actual value being balanced (e.g., client, resource).
Implementations§
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