Struct deadpool::managed::Object [−][src]
pub struct Object<M: Manager> { /* fields omitted */ }
Expand description
A wrapper around the actual pooled object which implements the traits
Deref
, DerefMut
and Drop
. Use this object just as if it was of type
T
and upon leaving scope the drop
function will take care of
returning it to the pool.
Implementations
Trait Implementations
Auto Trait Implementations
impl<M> !RefUnwindSafe for Object<M>
impl<M> Send for Object<M> where
M: Send + Sync,
<M as Manager>::Type: Send,
M: Send + Sync,
<M as Manager>::Type: Send,
impl<M> Sync for Object<M> where
M: Send + Sync,
<M as Manager>::Type: Send + Sync,
M: Send + Sync,
<M as Manager>::Type: Send + Sync,
impl<M> Unpin for Object<M> where
<M as Manager>::Type: Unpin,
<M as Manager>::Type: Unpin,