pub struct CommsRcv<'a> {
pub more: bool,
pub comms_phase_id: u8,
pub message: &'a [u8],
}Expand description
comms_rcv() object (Table 56): a comms_phase_id + message bytes.
The _last (9F 8C 05) / _more (9F 8C 06) tags share this body;
CommsRcv::more selects which tag is written and is set from the tag.
Fields§
§more: booltrue = comms_rcv_more; false = comms_rcv_last.
comms_phase_id: u8comms_phase_id.
message: &'a [u8]message_bytes.
Implementations§
Trait Implementations§
impl<'a> Eq for CommsRcv<'a>
Source§impl Serialize for CommsRcv<'_>
impl Serialize for CommsRcv<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl<'a> StructuralPartialEq for CommsRcv<'a>
Auto Trait Implementations§
impl<'a> Freeze for CommsRcv<'a>
impl<'a> RefUnwindSafe for CommsRcv<'a>
impl<'a> Send for CommsRcv<'a>
impl<'a> Sync for CommsRcv<'a>
impl<'a> Unpin for CommsRcv<'a>
impl<'a> UnsafeUnpin for CommsRcv<'a>
impl<'a> UnwindSafe for CommsRcv<'a>
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