pub struct SlotMeta {
pub created_at: Instant,
pub last_used: Instant,
pub uses: u64,
pub generation: u64,
}Expand description
Lifecycle metadata the pool tracks for every connection.
Handed to Manage::recycle so a manager can make
policy decisions of its own (for example, pinging only connections that have
been idle for a while).
Fields§
§created_at: InstantWhen the connection was established.
last_used: InstantWhen the connection was last returned to the pool.
uses: u64Number of completed checkouts.
generation: u64Pool generation this connection was created under.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SlotMeta
impl RefUnwindSafe for SlotMeta
impl Send for SlotMeta
impl Sync for SlotMeta
impl Unpin for SlotMeta
impl UnsafeUnpin for SlotMeta
impl UnwindSafe for SlotMeta
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