pub struct LinuxHotplugMonitor { /* private fields */ }Expand description
Linux native libusb hotplug events, without opening or claiming devices. If libusb lacks hotplug support, polls descriptors every 250 ms; a complete unplug/replug between fallback polls may be missed; Android must use its host receiver instead. Retain this handle to monitor; dropping it stops and joins the worker. This is discovery, not DAC support verification; composite devices with Audio interfaces are included.
Implementations§
Trait Implementations§
Source§impl Drop for LinuxHotplugMonitor
impl Drop for LinuxHotplugMonitor
Auto Trait Implementations§
impl !RefUnwindSafe for LinuxHotplugMonitor
impl !UnwindSafe for LinuxHotplugMonitor
impl Forget for LinuxHotplugMonitor
impl Freeze for LinuxHotplugMonitorwhere
*mut Counter<Channel<()>>: Freeze,
*mut Counter<Channel<()>>: Freeze,
*mut Counter<Channel<()>>: Freeze,
*const ArcInner<Inner> is !null: Freeze,
PhantomData<ArcInner<Inner>>: Freeze,
*const ArcInner<Packet<'static, ()>> is !null: Freeze,
PhantomData<ArcInner<Packet<'static, ()>>>: Freeze,
*const ArcInner<Mutex<RawMutex, State>> is !null: Freeze,
PhantomData<ArcInner<Mutex<RawMutex, State>>>: Freeze,
impl Move for LinuxHotplugMonitor
impl Send for LinuxHotplugMonitor
impl Sync for LinuxHotplugMonitor
impl Unpin for LinuxHotplugMonitor
impl UnsafeUnpin for LinuxHotplugMonitorwhere
*mut Counter<Channel<()>>: UnsafeUnpin,
*mut Counter<Channel<()>>: UnsafeUnpin,
*mut Counter<Channel<()>>: UnsafeUnpin,
*const ArcInner<Inner> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner>>: UnsafeUnpin,
*const ArcInner<Packet<'static, ()>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Packet<'static, ()>>>: UnsafeUnpin,
*const ArcInner<Mutex<RawMutex, State>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<RawMutex, State>>>: UnsafeUnpin,
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