pub struct Entry<T>{
pub interval: Duration,
pub last: Mutex<Option<Instant>>,
pub value: T,
}Expand description
A single entry in the interval load balancer. Each entry contains:
- an interval (minimum duration before it can be reused),
- the last time it was used,
- and the associated value.
Fields§
§interval: Duration§last: Mutex<Option<Instant>>§value: TTrait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Entry<T>
impl<T> !RefUnwindSafe for Entry<T>
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>
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