pub struct Pooled<'a, T> { /* private fields */ }Expand description
A borrowed object from the pool - returns automatically when dropped.
Use take() if you need to keep the object instead of
returning it to the pool.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Pooled<'a, T>where
T: Freeze,
impl<'a, T> !RefUnwindSafe for Pooled<'a, T>
impl<'a, T> Send for Pooled<'a, T>where
T: Send,
impl<'a, T> Sync for Pooled<'a, T>
impl<'a, T> Unpin for Pooled<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for Pooled<'a, 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