Struct dlt_core::dlt::ExtendedHeader
source · [−]pub struct ExtendedHeader {
pub verbose: bool,
pub argument_count: u8,
pub message_type: MessageType,
pub application_id: String,
pub context_id: String,
}
Expand description
The Extended header contains additional information about a DLT message.
In case the UEH
bit of the Standard Header is set go 1
, additional
information is transmitted which are defined in the Dlt Extended Header
format.
The Dlt Extended Header is directly attached after the Dlt Standard Header fields.
The Extended Header shall be in big endian format
Fields
verbose: bool
argument_count: u8
message_type: MessageType
application_id: String
context_id: String
Implementations
sourceimpl ExtendedHeader
impl ExtendedHeader
pub fn as_bytes(self: &ExtendedHeader) -> Vec<u8>
pub fn skip_with_level(self: &ExtendedHeader, level: LogLevel) -> bool
Trait Implementations
sourceimpl Clone for ExtendedHeader
impl Clone for ExtendedHeader
sourcefn clone(&self) -> ExtendedHeader
fn clone(&self) -> ExtendedHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ExtendedHeader
impl Debug for ExtendedHeader
sourceimpl PartialEq<ExtendedHeader> for ExtendedHeader
impl PartialEq<ExtendedHeader> for ExtendedHeader
sourcefn eq(&self, other: &ExtendedHeader) -> bool
fn eq(&self, other: &ExtendedHeader) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ExtendedHeader) -> bool
fn ne(&self, other: &ExtendedHeader) -> bool
This method tests for !=
.
sourceimpl Serialize for ExtendedHeader
impl Serialize for ExtendedHeader
impl StructuralPartialEq for ExtendedHeader
Auto Trait Implementations
impl RefUnwindSafe for ExtendedHeader
impl Send for ExtendedHeader
impl Sync for ExtendedHeader
impl Unpin for ExtendedHeader
impl UnwindSafe for ExtendedHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more