[−][src]Struct lockfree_object_pool::MutexReusable
Wrapper over T used by MutexObjectPool.
Access is allowed with std::ops::Deref or std::ops::DerefMut
Example
use lockfree_object_pool::MutexObjectPool; let pool = MutexObjectPool::<u32>::new( || Default::default(), |v| { *v = 0; } ); let mut item = pool.pull(); *item = 5; let work = *item * 5;
Implementations
impl<'a, T> MutexReusable<'a, T>[src]
pub fn new(pool: &'a MutexObjectPool<T>, data: ManuallyDrop<T>) -> Self[src]
Trait Implementations
impl<'a, T> Deref for MutexReusable<'a, T>[src]
impl<'a, T> DerefMut for MutexReusable<'a, T>[src]
impl<'a, T> Drop for MutexReusable<'a, T>[src]
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for MutexReusable<'a, T>[src]
impl<'a, T> Send for MutexReusable<'a, T> where
T: Send, [src]
T: Send,
impl<'a, T> Sync for MutexReusable<'a, T> where
T: Send + Sync, [src]
T: Send + Sync,
impl<'a, T> Unpin for MutexReusable<'a, T> where
T: Unpin, [src]
T: Unpin,
impl<'a, T> !UnwindSafe for MutexReusable<'a, T>[src]
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>,