pub struct FrameView<'a> {
pub desc: &'a MsgDescHot,
pub payload: &'a [u8],
}Expand description
Borrowed view of a frame for zero-copy receive.
Lifetime is tied to the receive call that produced it. Caller must process or copy before calling recv_frame again.
Fields§
§desc: &'a MsgDescHotReference to the frame descriptor.
payload: &'a [u8]Reference to the payload bytes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FrameView<'a>
impl<'a> RefUnwindSafe for FrameView<'a>
impl<'a> Send for FrameView<'a>
impl<'a> Sync for FrameView<'a>
impl<'a> Unpin for FrameView<'a>
impl<'a> UnwindSafe for FrameView<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more