#[non_exhaustive]pub enum Command {
SetupWithBitrate {
bitrate: Bitrate,
},
Open,
Close,
TxStandard {
identifier: Identifier,
frame: CanFrame,
},
TxExt {
identifier: ExtIdentifier,
frame: CanFrame,
},
TxStandardRtr {
identifier: Identifier,
len: u8,
},
TxExtRtr {
identifier: ExtIdentifier,
len: u8,
},
ReadStatus,
ReadVersion,
ReadSerial,
SetRxTimestamp {
timestamp: bool,
},
}Expand description
A command sent from the host to the SLCAN device.
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.
SetupWithBitrate
Open
Close
TxStandard
TxExt
Transmit an extended CAN frame.
TxStandardRtr
TxExtRtr
ReadStatus
ReadVersion
ReadSerial
SetRxTimestamp
Implementations§
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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