[−][src]Struct dlt_parse::DltPacketSlice
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(&self) -> 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]
fn eq(&self, other: &DltPacketSlice<'a>) -> bool
[src]
fn ne(&self, other: &DltPacketSlice<'a>) -> bool
[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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
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> 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>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,