Struct erdnuss_comms::frame_pool::WireFrameBox
source · pub struct WireFrameBox { /* private fields */ }Expand description
WireFrameBox represents a valid packet received from the wire
It is guaranteed to have a valid CmdAddr. It may have no data if
it is an empty message
Implementations§
source§impl WireFrameBox
impl WireFrameBox
sourcepub fn payload_mut(&mut self) -> &mut [u8]
pub fn payload_mut(&mut self) -> &mut [u8]
Mutably borrow the payload
sourcepub fn into_inner(self) -> FrameBox
pub fn into_inner(self) -> FrameBox
Deconstruct the WireFrameBox
Auto Trait Implementations§
impl RefUnwindSafe for WireFrameBox
impl Send for WireFrameBox
impl !Sync for WireFrameBox
impl Unpin for WireFrameBox
impl UnwindSafe for WireFrameBox
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