struct MemoryPoolInner<T> {
data: UnsafeCell<MaybeUninit<T>>,
available: AtomicBool,
}Expand description
Container for the T instance and synchronization atomic for the MemoryPool.
Fields§
§data: UnsafeCell<MaybeUninit<T>>§available: AtomicBoolImplementations§
Source§impl<T> MemoryPoolInner<T>
impl<T> MemoryPoolInner<T>
Sourcefn reserve(&self) -> Option<MemoryPoolToken<'_, T>>
fn reserve(&self) -> Option<MemoryPoolToken<'_, T>>
Reserves this MemoryPoolInner.
Sourcefn is_available(&self) -> bool
fn is_available(&self) -> bool
Returns true if the MemoryPoolInner is currently available.
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for MemoryPoolInner<T>
impl<T> !RefUnwindSafe for MemoryPoolInner<T>
impl<T> Send for MemoryPoolInner<T>where
T: Send,
impl<T> !Sync for MemoryPoolInner<T>
impl<T> Unpin for MemoryPoolInner<T>where
T: Unpin,
impl<T> UnwindSafe for MemoryPoolInner<T>where
T: UnwindSafe,
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