pub struct GetCommEventCounterResponse {
pub status: u16,
pub event_count: u16,
}Expand description
Response to a Get Comm Event Counter request (FC 0x0B).
Fields§
§status: u16Status word (0x0000 = ready, 0xFFFF = busy).
event_count: u16Event counter value.
Implementations§
Trait Implementations§
Source§impl Debug for GetCommEventCounterResponse
impl Debug for GetCommEventCounterResponse
Source§impl Encode for GetCommEventCounterResponse
impl Encode for GetCommEventCounterResponse
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 Freeze for GetCommEventCounterResponse
impl RefUnwindSafe for GetCommEventCounterResponse
impl Send for GetCommEventCounterResponse
impl Sync for GetCommEventCounterResponse
impl Unpin for GetCommEventCounterResponse
impl UnsafeUnpin for GetCommEventCounterResponse
impl UnwindSafe for GetCommEventCounterResponse
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