pub struct Object<M: Manager> { /* private fields */ }
Expand description
Wrapper around the actual pooled object which implements Deref
,
DerefMut
and Drop
traits.
Use this object just as if it was of type T
and upon leaving a scope the
Drop::drop()
will take care of returning it to the pool.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for Object<M>
impl<M> !RefUnwindSafe for Object<M>
impl<M> Send for Object<M>
impl<M> Sync for Object<M>
impl<M> Unpin for Object<M>
impl<M> !UnwindSafe for Object<M>
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