pub trait Controller: Send + 'static {
// Required methods
fn init(&mut self) -> LocalBoxFuture<'_, Result<(), USBError>>;
fn device_list(
&self,
) -> LocalBoxFuture<'_, Result<Vec<Box<dyn DeviceInfo>>, USBError>>;
fn handle_event(&mut self);
}Required Methods§
fn init(&mut self) -> LocalBoxFuture<'_, Result<(), USBError>>
fn device_list( &self, ) -> LocalBoxFuture<'_, Result<Vec<Box<dyn DeviceInfo>>, USBError>>
Sourcefn handle_event(&mut self)
fn handle_event(&mut self)
Used in interrupt context.