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
A single entry in the fault-tolerant load balancer.
max_count == 0 = unlimited. max_error_count == 0 = never auto-disable.
Fields§
§max_count: u64§max_error_count: u64§count: AtomicU64§error_count: AtomicU64§value: TImplementations§
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> UnsafeUnpin for Entry<T>where
T: UnsafeUnpin,
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