pub struct MessageLog {
pub channel: u8,
pub byte_length: u16,
pub protocol: String,
pub id: String,
pub name: String,
pub sender_node: String,
pub data: String,
pub comment: String,
pub signals: Vec<usize>,
}
Expand description
Metadata and payload carried by a CanFrame
.
There is typically one MessageLog
per CanFrame
.
Fields§
§channel: u8
Logger channel index (typically 1-based).
byte_length: u16
Raw payload length token.
protocol: String
"CAN"
or "CAN FD"
depending on payload size.
id: String
Raw identifier token as seen in the log (may include format suffixes).
name: String
Empty if unknown (missing DB).
sender_node: String
Empty if unknown (missing DB).
data: String
Payload bytes as hex pairs separated by spaces.
comment: String
Optional comment (empty if unknown).
signals: Vec<usize>
Indices into CanLog.signals
for all SignalLog
present in this message.
Implementations§
Source§impl MessageLog
impl MessageLog
Trait Implementations§
Source§impl Clone for MessageLog
impl Clone for MessageLog
Source§fn clone(&self) -> MessageLog
fn clone(&self) -> MessageLog
Returns a duplicate 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 MessageLog
impl Debug for MessageLog
Source§impl Default for MessageLog
impl Default for MessageLog
Source§fn default() -> MessageLog
fn default() -> MessageLog
Returns the “default value” for a type. Read more
Source§impl PartialEq for MessageLog
impl PartialEq for MessageLog
impl StructuralPartialEq for MessageLog
Auto Trait Implementations§
impl Freeze for MessageLog
impl RefUnwindSafe for MessageLog
impl Send for MessageLog
impl Sync for MessageLog
impl Unpin for MessageLog
impl UnwindSafe for MessageLog
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