Enum dlt_core::dlt::MessageType
source · pub enum MessageType {
Log(LogLevel),
ApplicationTrace(ApplicationTraceType),
NetworkTrace(NetworkTraceType),
Control(ControlType),
Unknown((u8, u8)),
}
Expand description
Part of the extended header, distinguishes log, trace and controll messages
Variants§
Log(LogLevel)
ApplicationTrace(ApplicationTraceType)
NetworkTrace(NetworkTraceType)
Control(ControlType)
Unknown((u8, u8))
Trait Implementations§
source§impl AsRef<str> for MessageType
impl AsRef<str> for MessageType
source§impl Clone for MessageType
impl Clone for MessageType
source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MessageType
impl Debug for MessageType
source§impl From<&MessageType> for u8
impl From<&MessageType> for u8
source§fn from(t: &MessageType) -> Self
fn from(t: &MessageType) -> Self
Converts to this type from the input type.
source§impl PartialEq<MessageType> for MessageType
impl PartialEq<MessageType> for MessageType
source§fn eq(&self, other: &MessageType) -> bool
fn eq(&self, other: &MessageType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MessageType
impl Serialize for MessageType
source§impl TryFrom<u8> for MessageType
impl TryFrom<u8> for MessageType
The Message Type is encoded in bit 1-3 of the MessageInfo xxxx 321x
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more