[−][src]Struct dlt_parse::DltHeader
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: u8
message_counter: u8
length: u16
ecu_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(&self) -> 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
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,