pub struct Pooled<T> { /* private fields */ }Expand description
RAII guard that returns the object to the pool on drop.
The object is always returned to the pool when the guard is dropped. There is no way to “take” the object out permanently.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Pooled<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Pooled<T>
impl<T> !Send for Pooled<T>
impl<T> !Sync for Pooled<T>
impl<T> Unpin for Pooled<T>where
T: Unpin,
impl<T> !UnwindSafe for Pooled<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