pub struct GetCommEventLogResponse<'buf> {
pub byte_count: u8,
pub status: u16,
pub event_count: u16,
pub message_count: u16,
pub events: &'buf [u8],
}Expand description
Response to a Get Comm Event Log request (FC 0x0C).
Fields§
§byte_count: u8Number of bytes that follow.
status: u16Status word (0x0000 = ready, 0xFFFF = busy).
event_count: u16Event counter value.
message_count: u16Message counter value.
events: &'buf [u8]Event log bytes.
Implementations§
Source§impl<'buf> GetCommEventLogResponse<'buf>
impl<'buf> GetCommEventLogResponse<'buf>
Trait Implementations§
Source§impl<'buf> Debug for GetCommEventLogResponse<'buf>
impl<'buf> Debug for GetCommEventLogResponse<'buf>
Source§impl Encode for GetCommEventLogResponse<'_>
impl Encode for GetCommEventLogResponse<'_>
Source§fn encode_into(&self, buf: &mut [u8]) -> Result<usize, EncodeError>
fn encode_into(&self, buf: &mut [u8]) -> Result<usize, EncodeError>
Write the full PDU (function code + data) into
buf. Read moreSource§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Total encoded length in bytes (including the function code byte).
Auto Trait Implementations§
impl<'buf> Freeze for GetCommEventLogResponse<'buf>
impl<'buf> RefUnwindSafe for GetCommEventLogResponse<'buf>
impl<'buf> Send for GetCommEventLogResponse<'buf>
impl<'buf> Sync for GetCommEventLogResponse<'buf>
impl<'buf> Unpin for GetCommEventLogResponse<'buf>
impl<'buf> UnsafeUnpin for GetCommEventLogResponse<'buf>
impl<'buf> UnwindSafe for GetCommEventLogResponse<'buf>
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