Enum dlt_core::dlt::PayloadContent
source · [−]pub enum PayloadContent {
Verbose(Vec<Argument>),
NonVerbose(u32, Vec<u8>),
ControlMsg(ControlType, Vec<u8>),
}
Expand description
There are 3 different types of payload: * one for verbose messages, * one for non-verbose messages, * one for control-messages
For Non-Verbose mode (without Extended Header), a fibex file provides an additional description for the payload. With the combination of a Message ID and an external fibex description, following information is be recoverable (otherwise provided in the Extended Header): * Message Type (MSTP) * Message Info (MSIN) * Number of arguments (NOAR) * Application ID (APID) * Context ID (CTID)
Control messages are normal Dlt messages with a Standard Header, an Extended Header, and payload. The payload contains of the Service ID and the contained parameters.
Variants
Verbose(Vec<Argument>)
NonVerbose(u32, Vec<u8>)
ControlMsg(ControlType, Vec<u8>)
Implementations
sourceimpl PayloadContent
impl PayloadContent
Trait Implementations
sourceimpl Clone for PayloadContent
impl Clone for PayloadContent
sourcefn clone(&self) -> PayloadContent
fn clone(&self) -> PayloadContent
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 PayloadContent
impl Debug for PayloadContent
sourceimpl PartialEq<PayloadContent> for PayloadContent
impl PartialEq<PayloadContent> for PayloadContent
sourcefn eq(&self, other: &PayloadContent) -> bool
fn eq(&self, other: &PayloadContent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PayloadContent) -> bool
fn ne(&self, other: &PayloadContent) -> bool
This method tests for !=
.
sourceimpl Serialize for PayloadContent
impl Serialize for PayloadContent
impl StructuralPartialEq for PayloadContent
Auto Trait Implementations
impl RefUnwindSafe for PayloadContent
impl Send for PayloadContent
impl Sync for PayloadContent
impl Unpin for PayloadContent
impl UnwindSafe for PayloadContent
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