pub struct IndividualAddressingPayload<'a> {
pub rfu: u8,
pub individual_addressing_data: &'a [u8],
}Expand description
Individual addressing payload (type 0x21) per ETSI TS 102 773 §5.2.8.1, Fig 11.
Top-level layout:
- byte 0: rfu (8 bits) — reserved, ignored on parse, preserved for round-trip
- byte 1: individual_addressing_length (8 bits) — length of the data loop in bytes
- bytes 2..: individual_addressing_data — a loop of per-transmitter entries, each
tx_identifier(16) · function_loop_length(8) · function()…. The tx_identifier lives INSIDE each entry, not at the top level; the loop is kept raw here.
Fields§
§rfu: u8Reserved-for-future-use byte (byte 0); preserved verbatim for round-trip.
individual_addressing_data: &'a [u8]Raw individual_addressing_data loop. Length is the 8-bit
individual_addressing_length field, derived from this slice on serialize.
Trait Implementations§
Source§impl<'a> Clone for IndividualAddressingPayload<'a>
impl<'a> Clone for IndividualAddressingPayload<'a>
Source§fn clone(&self) -> IndividualAddressingPayload<'a>
fn clone(&self) -> IndividualAddressingPayload<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for IndividualAddressingPayload<'a>
impl<'a> Debug for IndividualAddressingPayload<'a>
Source§impl Display for IndividualAddressingPayload<'_>
impl Display for IndividualAddressingPayload<'_>
impl<'a> Eq for IndividualAddressingPayload<'a>
Source§impl<'a> From<IndividualAddressingPayload<'a>> for AnyPayload<'a>
impl<'a> From<IndividualAddressingPayload<'a>> for AnyPayload<'a>
Source§fn from(p: IndividualAddressingPayload<'a>) -> Self
fn from(p: IndividualAddressingPayload<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for IndividualAddressingPayload<'a>
impl<'a> Parse<'a> for IndividualAddressingPayload<'a>
Source§impl<'a> PartialEq for IndividualAddressingPayload<'a>
impl<'a> PartialEq for IndividualAddressingPayload<'a>
Source§fn eq(&self, other: &IndividualAddressingPayload<'a>) -> bool
fn eq(&self, other: &IndividualAddressingPayload<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> PayloadDef<'a> for IndividualAddressingPayload<'a>
impl<'a> PayloadDef<'a> for IndividualAddressingPayload<'a>
Source§impl Serialize for IndividualAddressingPayload<'_>
impl Serialize for IndividualAddressingPayload<'_>
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.Source§impl<'a> Serialize for IndividualAddressingPayload<'a>
impl<'a> Serialize for IndividualAddressingPayload<'a>
impl<'a> StructuralPartialEq for IndividualAddressingPayload<'a>
Source§impl<'a> Yokeable<'a> for IndividualAddressingPayload<'static>
impl<'a> Yokeable<'a> for IndividualAddressingPayload<'static>
Source§type Output = IndividualAddressingPayload<'a>
type Output = IndividualAddressingPayload<'a>
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Auto Trait Implementations§
impl<'a> Freeze for IndividualAddressingPayload<'a>
impl<'a> RefUnwindSafe for IndividualAddressingPayload<'a>
impl<'a> Send for IndividualAddressingPayload<'a>
impl<'a> Sync for IndividualAddressingPayload<'a>
impl<'a> Unpin for IndividualAddressingPayload<'a>
impl<'a> UnsafeUnpin for IndividualAddressingPayload<'a>
impl<'a> UnwindSafe for IndividualAddressingPayload<'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