pub struct WssDataField {
pub header: LineHeader,
pub wss_data_block: u16,
}Expand description
WSS data field — ETSI EN 301 775 §4.7.1, Table 8 (data_unit_id 0xC4).
Byte layout (24 bits): byte0 = shared header, then 14 wss_data_block bits
followed by a 2-bit reserved_future_use 11 tail. So byte1 holds wss bits
[13:6] and byte2 holds wss bits [5:0] then the 2-bit RFU tail.
Fields§
§header: LineHeaderShared first-byte header (§4.7.1: field_parity 1, line_offset 23).
wss_data_block: u1614-bit wss_data_block (§4.7; EN 300 294 — value in the low 14 bits).
Implementations§
Source§impl WssDataField
impl WssDataField
Sourcepub fn serialized_len(&self) -> usize
pub fn serialized_len(&self) -> usize
Bytes this data field occupies (the data_unit_length).
Sourcepub fn parse(data: &[u8]) -> Result<Self>
pub fn parse(data: &[u8]) -> Result<Self>
Parse exactly one WSS data field from data. The trailing 2-bit RFU is
not validated (decoders ignore RFU).
Sourcepub fn serialize_into(&self, out: &mut [u8]) -> Result<usize>
pub fn serialize_into(&self, out: &mut [u8]) -> Result<usize>
Serialize into out, returning the number of bytes written. The 14-bit
wss_data_block is masked and a 11 RFU tail is emitted.
Trait Implementations§
Source§impl Clone for WssDataField
impl Clone for WssDataField
Source§fn clone(&self) -> WssDataField
fn clone(&self) -> WssDataField
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 moreimpl Copy for WssDataField
Source§impl Debug for WssDataField
impl Debug for WssDataField
impl Eq for WssDataField
Source§impl PartialEq for WssDataField
impl PartialEq for WssDataField
Source§impl Serialize for WssDataField
Available on crate feature serde only.
impl Serialize for WssDataField
Available on crate feature
serde only.impl StructuralPartialEq for WssDataField
Auto Trait Implementations§
impl Freeze for WssDataField
impl RefUnwindSafe for WssDataField
impl Send for WssDataField
impl Sync for WssDataField
impl Unpin for WssDataField
impl UnsafeUnpin for WssDataField
impl UnwindSafe for WssDataField
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