pub(super) struct Pooled<T: Poolable> {
value: Option<T>,
is_reused: bool,
key: (Scheme, Authority),
pool: WeakOpt<Mutex<PoolInner<T>>>,
}
Expand description
A wrapped poolable value that tries to reinsert to the Pool on Drop.
Fields§
§value: Option<T>
§is_reused: bool
§key: (Scheme, Authority)
§pool: WeakOpt<Mutex<PoolInner<T>>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Pooled<T>
impl<T> RefUnwindSafe for Pooled<T>where
T: RefUnwindSafe,
impl<T> Send for Pooled<T>
impl<T> Sync for Pooled<T>where
T: Sync,
impl<T> Unpin for Pooled<T>
impl<T> UnwindSafe for Pooled<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