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§

source

type Error

The error type

Required Methods§

source

async fn dispatch_command(&mut self, id: u32) -> Result<(), Self::Error>

Dispatch a command on the device by sending the command.

Object Safety§

This trait is not object safe.

Implementors§