pub struct TypedSampleGuard<'a, T: Pod> { /* private fields */ }Expand description
Typed zero-copy reference to a T: Pod value in shared memory.
Implements Deref<Target=T> – safe to read without unsafe.
The underlying pool block is held alive by an atomic refcount and freed
back to the pool when this guard is dropped.
Trait Implementations§
Source§impl<T: Pod> Debug for TypedSampleGuard<'_, T>
impl<T: Pod> Debug for TypedSampleGuard<'_, T>
Source§impl<T: Pod> Deref for TypedSampleGuard<'_, T>
impl<T: Pod> Deref for TypedSampleGuard<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for TypedSampleGuard<'a, T>
impl<'a, T> RefUnwindSafe for TypedSampleGuard<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for TypedSampleGuard<'a, T>where
T: Sync,
impl<'a, T> Sync for TypedSampleGuard<'a, T>where
T: Sync,
impl<'a, T> Unpin for TypedSampleGuard<'a, T>
impl<'a, T> UnsafeUnpin for TypedSampleGuard<'a, T>
impl<'a, T> UnwindSafe for TypedSampleGuard<'a, T>where
T: RefUnwindSafe,
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