pub struct CommEventLog {
pub status: u16,
pub event_count: u16,
pub message_count: u16,
pub events: Vec<u8>,
}Expand description
Snapshot of the communications event log returned by Get Comm Event Log (FC 0x0C, Spec V1.1b3 §6.10).
Owned (rather than borrowing the codec response type) so a DataStore can
build it behind its async boundary; the handler derives the wire byte_count
as events.len() + 6.
Fields§
§status: u16Status word: 0x0000 ready, 0xFFFF busy.
event_count: u16Event counter value.
message_count: u16Message counter value.
events: Vec<u8>Event bytes (0..=64).
Trait Implementations§
Source§impl Clone for CommEventLog
impl Clone for CommEventLog
Source§fn clone(&self) -> CommEventLog
fn clone(&self) -> CommEventLog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommEventLog
impl Debug for CommEventLog
Source§impl Default for CommEventLog
impl Default for CommEventLog
Source§fn default() -> CommEventLog
fn default() -> CommEventLog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommEventLog
impl RefUnwindSafe for CommEventLog
impl Send for CommEventLog
impl Sync for CommEventLog
impl Unpin for CommEventLog
impl UnsafeUnpin for CommEventLog
impl UnwindSafe for CommEventLog
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