[][src]Struct dlt_parse::DltPacketSlice

pub struct DltPacketSlice<'a> { /* fields omitted */ }

A slice containing an dlt header & payload.

Methods

impl<'a> DltPacketSlice<'a>[src]

pub fn from_slice(slice: &'a [u8]) -> Result<DltPacketSlice, ReadError>[src]

Read the dlt header and create a slice containing the dlt header & payload.

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

Returns if an extended header is present.

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

Returns if the numbers in the payload are encoded in big endian.

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

Returns if the dlt package is verbose or non verbose.

pub fn message_id(&self) -> Option<u32>[src]

Returns the message id if the message is a non verbose message otherwise None is returned.

pub fn slice(&self) -> &'a [u8][src]

Returns the slice containing the dlt header + payload.

pub fn payload(&self) -> &'a [u8][src]

Returns a slice containing the payload of the dlt message

pub fn non_verbose_payload(&self) -> &'a [u8][src]

Returns a slice containing the payload of a non verbose message (after the message id).

pub fn header(&self) -> DltHeader[src]

Deserialize the dlt header

Trait Implementations

impl<'a> Eq for DltPacketSlice<'a>[src]

impl<'a> Clone for DltPacketSlice<'a>[src]

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

Performs copy-assignment from source. Read more

impl<'a> PartialEq<DltPacketSlice<'a>> for DltPacketSlice<'a>[src]

impl<'a> Debug for DltPacketSlice<'a>[src]

Auto Trait Implementations

impl<'a> Send for DltPacketSlice<'a>

impl<'a> Sync for DltPacketSlice<'a>

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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> 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.

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