[−][src]Struct deadpool::unmanaged::Object
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
impl<T> Object<T>
[src]
pub fn take(this: Self) -> T
[src]
Take this object from the pool permanently. This reduces the size of
the pool. If needed the object can later be added back to the pool
using the Pool::add
or Pool::try_add
methods.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Object<T>
impl<T> Send for Object<T> where
T: Send,
T: Send,
impl<T> Sync for Object<T> where
T: Send + Sync,
T: Send + Sync,
impl<T> Unpin for Object<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for Object<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,