pub trait XhciBackendDeviceProvider: Send + Sync {
// Required methods
fn start(
&mut self,
fail_handle: Arc<dyn FailHandle>,
event_loop: Arc<EventLoop>,
hub: Arc<UsbHub>
) -> Result<()>;
fn keep_rds(&self) -> Vec<RawDescriptor>;
}
Expand description
Xhci backend provider will run on an EventLoop and connect new devices to usb ports.
Required Methods§
sourcefn start(
&mut self,
fail_handle: Arc<dyn FailHandle>,
event_loop: Arc<EventLoop>,
hub: Arc<UsbHub>
) -> Result<()>
fn start( &mut self, fail_handle: Arc<dyn FailHandle>, event_loop: Arc<EventLoop>, hub: Arc<UsbHub> ) -> Result<()>
Start the provider on EventLoop.
sourcefn keep_rds(&self) -> Vec<RawDescriptor>
fn keep_rds(&self) -> Vec<RawDescriptor>
Keep raw descriptors that should be kept open.