Trait device_driver::CommandDevice
source · pub trait CommandDevice {
type Error;
// Required method
fn dispatch_command(&mut self, id: u32) -> Result<(), Self::Error>;
}Expand description
A trait to represent the interface to the device.
This is called to dispatch commands.