pub struct PayloadBuffer<'a, T: FromBytes + IntoBytes + KnownLayout + Copy> { /* private fields */ }Expand description
An RAII buffer for committing a payload to the FIFO. Dropping this buffer automatically rolls back the payload allocation.
Implementations§
Source§impl<'a, T: FromBytes + IntoBytes + KnownLayout + Copy> PayloadBuffer<'a, T>
impl<'a, T: FromBytes + IntoBytes + KnownLayout + Copy> PayloadBuffer<'a, T>
Sourcepub fn data(&mut self) -> &mut MutPtrByteSlice<'a>
pub fn data(&mut self) -> &mut MutPtrByteSlice<'a>
Returns a mutable slice to the payload data.
Trait Implementations§
Source§impl<'a, T: FromBytes + IntoBytes + KnownLayout + Copy> Drop for PayloadBuffer<'a, T>
impl<'a, T: FromBytes + IntoBytes + KnownLayout + Copy> Drop for PayloadBuffer<'a, T>
Auto Trait Implementations§
impl<'a, T> !UnwindSafe for PayloadBuffer<'a, T>
impl<'a, T> Freeze for PayloadBuffer<'a, T>
impl<'a, T> RefUnwindSafe for PayloadBuffer<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for PayloadBuffer<'a, T>where
T: Send,
impl<'a, T> Sync for PayloadBuffer<'a, T>where
T: Sync,
impl<'a, T> Unpin for PayloadBuffer<'a, T>
impl<'a, T> UnsafeUnpin for PayloadBuffer<'a, 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