#[non_exhaustive]pub enum Response {
Error,
Ack,
TxAck,
ExtTxAck,
Status(Status),
Version {
hardware_version: u8,
software_version: u8,
},
Serial(SerialNumber),
}Expand description
A response to a Command.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Error
General error response (ASCII BELL).
Ack
Generic acknowledgement of a command (CR).
TxAck
Standard CAN frame enqueued for transmission.
ExtTxAck
Extended CAN frame enqueued for transmission.
Status(Status)
Status flags response.
Version
Response to the ReadVersion command.
Serial(SerialNumber)
Response to the ReadSerial command.
Implementations§
Trait Implementations§
impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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