pub struct OwnedEntry<T: Default> { /* private fields */ }Expand description
An owned entry in the pool.
OwnedEntry holds a reference pointer to an item from the pool and a Arc
reference to the Pool.
When the last OwnedEntry is dropped, the item is returned to the pool.
Implementations§
Source§impl<T: Default> OwnedEntry<T>
impl<T: Default> OwnedEntry<T>
Trait Implementations§
Source§impl<T: Default> Clone for OwnedEntry<T>
impl<T: Default> Clone for OwnedEntry<T>
Source§impl<T: Default> Deref for OwnedEntry<T>
impl<T: Default> Deref for OwnedEntry<T>
Auto Trait Implementations§
impl<T> Freeze for OwnedEntry<T>
impl<T> RefUnwindSafe for OwnedEntry<T>where
T: RefUnwindSafe,
impl<T> Send for OwnedEntry<T>
impl<T> Sync for OwnedEntry<T>
impl<T> Unpin for OwnedEntry<T>
impl<T> UnwindSafe for OwnedEntry<T>where
T: RefUnwindSafe,
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