Trait device_driver::AsyncCommandDevice
source · pub trait AsyncCommandDevice {
type Error;
// Required method
async 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 asynchronously dispatch commands.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.