pub enum DeviceProvider {
Created {
control_tube: Mutex<Tube>,
},
Started {
inner: Arc<ProviderInner>,
},
Failed,
}Expand description
Device provider is an xhci backend device provider that provides generic semantics to handle various types of backend devices and connects them to the xhci layer.
Variants§
Implementations§
Source§impl DeviceProvider
impl DeviceProvider
pub fn new() -> Result<(Tube, DeviceProvider)>
fn start_helper( &mut self, fail_handle: Arc<dyn FailHandle>, event_loop: Arc<EventLoop>, hub: Arc<UsbHub>, ) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DeviceProvider
impl !RefUnwindSafe for DeviceProvider
impl Send for DeviceProvider
impl Sync for DeviceProvider
impl Unpin for DeviceProvider
impl !UnwindSafe for DeviceProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more