pub struct StandardHeader {
pub version: u8,
pub endianness: Endianness,
pub has_extended_header: bool,
pub message_counter: u8,
pub ecu_id: Option<String>,
pub session_id: Option<u32>,
pub timestamp: Option<u32>,
pub payload_length: u16,
}
Expand description
The Standard Header shall be in big endian format
Fields§
§version: u8
§endianness: Endianness
§has_extended_header: bool
§message_counter: u8
§ecu_id: Option<String>
§session_id: Option<u32>
§timestamp: Option<u32>
§payload_length: u16
Implementations§
Source§impl StandardHeader
impl StandardHeader
pub fn header_type_byte(&self) -> u8
Sourcepub fn overall_length(&self) -> u16
pub fn overall_length(&self) -> u16
compute length of complete dlt message without storage header header + extended-header + payload
Trait Implementations§
Source§impl Clone for StandardHeader
impl Clone for StandardHeader
Source§fn clone(&self) -> StandardHeader
fn clone(&self) -> StandardHeader
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StandardHeader
impl Debug for StandardHeader
Source§impl PartialEq for StandardHeader
impl PartialEq for StandardHeader
impl StructuralPartialEq for StandardHeader
Auto Trait Implementations§
impl Freeze for StandardHeader
impl RefUnwindSafe for StandardHeader
impl Send for StandardHeader
impl Sync for StandardHeader
impl Unpin for StandardHeader
impl UnwindSafe for StandardHeader
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