pub struct DeviceObserver(/* private fields */);Expand description
Device observer handle.
Used to receive notifications about device addition/removal.
Call remove_device_observer when done observing.
Implementations§
Source§impl DeviceObserver
impl DeviceObserver
Sourcepub unsafe fn from_raw(observer: SysDeviceObserver) -> Self
pub unsafe fn from_raw(observer: SysDeviceObserver) -> Self
Sourcepub fn as_raw(&self) -> SysDeviceObserver
pub fn as_raw(&self) -> SysDeviceObserver
Get the raw observer handle.
Auto Trait Implementations§
impl Freeze for DeviceObserver
impl RefUnwindSafe for DeviceObserver
impl !Send for DeviceObserver
impl !Sync for DeviceObserver
impl Unpin for DeviceObserver
impl UnwindSafe for DeviceObserver
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