Struct dlt_core::dlt::StandardHeader
source · [−]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
sourceimpl 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
sourceimpl StandardHeader
impl StandardHeader
Trait Implementations
sourceimpl Clone for StandardHeader
impl Clone for StandardHeader
sourcefn clone(&self) -> StandardHeader
fn clone(&self) -> StandardHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StandardHeader
impl Debug for StandardHeader
sourceimpl PartialEq<StandardHeader> for StandardHeader
impl PartialEq<StandardHeader> for StandardHeader
sourcefn eq(&self, other: &StandardHeader) -> bool
fn eq(&self, other: &StandardHeader) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StandardHeader) -> bool
fn ne(&self, other: &StandardHeader) -> bool
This method tests for !=
.
sourceimpl Serialize for StandardHeader
impl Serialize for StandardHeader
impl StructuralPartialEq for StandardHeader
Auto Trait Implementations
impl RefUnwindSafe for StandardHeader
impl Send for StandardHeader
impl Sync for StandardHeader
impl Unpin for StandardHeader
impl UnwindSafe for StandardHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more