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.

Required Associated Types§

source

type Error

The error type

Required Methods§

source

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

Dispatch a command on the device by sending the command.

Implementors§