pub trait Command: Debug {
type Response: Response;
const COMMAND_ID: u8;
// Required method
fn payload(&self) -> Vec<u8>;
// Provided method
fn to_raw(&self) -> Vec<u8> { ... }
}Expand description
Command to call the WCH-Link
Required Associated Types§
Required Associated Constants§
const COMMAND_ID: u8
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.