Struct dlt_core::dlt::StandardHeader[][src]

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,
}

The Standard Header shall be in big endian format

Fields

version: u8endianness: Endiannesshas_extended_header: boolmessage_counter: u8ecu_id: Option<String>session_id: Option<u32>timestamp: Option<u32>payload_length: u16

Implementations

impl StandardHeader[src]

pub fn header_type_byte(&self) -> u8[src]

pub fn overall_length(&self) -> u16[src]

compute length of complete dlt message without storage header header + extended-header + payload

impl StandardHeader[src]

pub fn new(
    version: u8,
    endianness: Endianness,
    message_counter: u8,
    has_extended_header: bool,
    payload_length: u16,
    ecu_id: Option<String>,
    session_id: Option<u32>,
    timestamp: Option<u32>
) -> Self
[src]

pub fn as_bytes(&self) -> Vec<u8>[src]

Trait Implementations

impl Clone for StandardHeader[src]

impl Debug for StandardHeader[src]

impl Display for StandardHeader[src]

impl PartialEq<StandardHeader> for StandardHeader[src]

impl Serialize for StandardHeader[src]

impl StructuralPartialEq for StandardHeader[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.