[][src]Struct dlt_parse::DltHeader

pub struct DltHeader {
    pub is_big_endian: bool,
    pub version: u8,
    pub message_counter: u8,
    pub length: u16,
    pub ecu_id: Option<u32>,
    pub session_id: Option<u32>,
    pub timestamp: Option<u32>,
    pub extended_header: Option<DltExtendedHeader>,
}

A dlt message header

Fields

is_big_endian: bool

If true the payload is encoded in big endian. This does not influence the fields of the dlt header, which is always encoded in big endian.

version: u8message_counter: u8length: u16ecu_id: Option<u32>session_id: Option<u32>timestamp: Option<u32>extended_header: Option<DltExtendedHeader>

Methods

impl DltHeader[src]

pub fn read<T: Read + Sized>(reader: &mut T) -> Result<DltHeader, ReadError>[src]

Deserialize a DltHeader & TpHeader from the given reader.

pub fn write<T: Write + Sized>(&self, writer: &mut T) -> Result<(), WriteError>[src]

Serializes the header to the given writer.

pub fn is_verbose(&self) -> bool[src]

Returns if the package is a verbose package

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

Return the byte/octed size of the serialized header (including extended header)

Trait Implementations

impl Default for DltHeader[src]

impl PartialEq<DltHeader> for DltHeader[src]

impl Eq for DltHeader[src]

impl Clone for DltHeader[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for DltHeader[src]

Auto Trait Implementations

impl Send for DltHeader

impl Sync for DltHeader

Blanket Implementations

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

impl<T> From for T[src]

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.