pub struct DeviceWatcher { /* private fields */ }Expand description
Values for DeviceWatcher.
Implementations§
Source§impl DeviceWatcher
impl DeviceWatcher
Sourcepub fn snapshot(&self) -> DeviceSnapshot
pub fn snapshot(&self) -> DeviceSnapshot
Performs the snapshot operation.
Sourcepub async fn changed(&mut self) -> CameraResult<DeviceSnapshot>
pub async fn changed(&mut self) -> CameraResult<DeviceSnapshot>
Wait for a changed inventory/error. Generation gaps indicate coalesced updates.
Sourcepub async fn stop(&mut self) -> CameraResult<()>
pub async fn stop(&mut self) -> CameraResult<()>
Performs the stop operation.
Trait Implementations§
Source§impl Drop for DeviceWatcher
impl Drop for DeviceWatcher
Auto Trait Implementations§
impl Forget for DeviceWatcher
impl Freeze for DeviceWatcher
impl RefUnwindSafe for DeviceWatcher
impl Send for DeviceWatcher
impl Sync for DeviceWatcher
impl Unpin for DeviceWatcher
impl UnsafeUnpin for DeviceWatcher
impl UnwindSafe for DeviceWatcher
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