pub struct CommsSend<'a> {
pub more: bool,
pub comms_phase_id: u8,
pub message: &'a [u8],
}Expand description
comms_send() object (Table 55): a comms_phase_id + message bytes.
The _last (9F 8C 03) / _more (9F 8C 04) tags share this body;
CommsSend::more selects which tag is written and is set from the tag.
Fields§
§more: booltrue = comms_send_more; false = comms_send_last.
comms_phase_id: u8comms_phase_id (0 or 1).
message: &'a [u8]message_bytes (max 254).
Implementations§
Trait Implementations§
impl<'a> Eq for CommsSend<'a>
Source§impl<'a> PartialEq for CommsSend<'a>
impl<'a> PartialEq for CommsSend<'a>
Source§impl Serialize for CommsSend<'_>
impl Serialize for CommsSend<'_>
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 CommsSend<'a>
Auto Trait Implementations§
impl<'a> Freeze for CommsSend<'a>
impl<'a> RefUnwindSafe for CommsSend<'a>
impl<'a> Send for CommsSend<'a>
impl<'a> Sync for CommsSend<'a>
impl<'a> Unpin for CommsSend<'a>
impl<'a> UnsafeUnpin for CommsSend<'a>
impl<'a> UnwindSafe for CommsSend<'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