pub struct Entry<T>{
pub interval: Duration,
pub last: Mutex<Option<Instant>>,
pub value: T,
}Expand description
A single entry in the cooldown load balancer.
Each entry tracks its minimum reuse interval, last allocation timestamp, and 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> !UnwindSafe 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> UnsafeUnpin for Entry<T>where
T: UnsafeUnpin,
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