pub struct WriteLoan<T: PlainType> { /* private fields */ }Expand description
A sample loaned to a writer to fill: in shared memory when the writer
has a pool, else on the heap. It holds zeros, or (a slot used again)
an earlier sample of the writer; it is published
with DataWriter::write_loaned,
and returned unwritten when dropped.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Forget for WriteLoan<T>
impl<T> Freeze for WriteLoan<T>where
*const ArcInner<Pool> is !null: Freeze,
PhantomData<ArcInner<Pool>>: Freeze,
PhantomData<T>: Freeze,
*const T is !null: Freeze,
impl<T> Move for WriteLoan<T>
impl<T> RefUnwindSafe for WriteLoan<T>
impl<T> Send for WriteLoan<T>
impl<T> Sync for WriteLoan<T>
impl<T> Unpin for WriteLoan<T>
impl<T> UnsafeUnpin for WriteLoan<T>where
*const ArcInner<Pool> is !null: UnsafeUnpin,
PhantomData<ArcInner<Pool>>: UnsafeUnpin,
PhantomData<T>: UnsafeUnpin,
*const T is !null: UnsafeUnpin,
impl<T> UnwindSafe for WriteLoan<T>
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