#[non_exhaustive]pub struct DeviceWatcherCapabilities {
pub availability: Availability,
pub mode: WatcherMode,
pub scopes: Vec<WatchScope>,
}Expand description
Device watcher support, independent of capture sources.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.availability: AvailabilityAvailability of notifications.
mode: WatcherModeImplementing watcher mode.
scopes: Vec<WatchScope>Reported change domains; empty for a no-op watcher.
Implementations§
Source§impl DeviceWatcherCapabilities
impl DeviceWatcherCapabilities
Sourcepub fn new(
availability: Availability,
mode: WatcherMode,
scopes: Vec<WatchScope>,
) -> Self
pub fn new( availability: Availability, mode: WatcherMode, scopes: Vec<WatchScope>, ) -> Self
Construct a watcher description.
Trait Implementations§
Source§impl Clone for DeviceWatcherCapabilities
impl Clone for DeviceWatcherCapabilities
Source§impl Debug for DeviceWatcherCapabilities
impl Debug for DeviceWatcherCapabilities
impl Eq for DeviceWatcherCapabilities
impl StructuralPartialEq for DeviceWatcherCapabilities
Auto Trait Implementations§
impl Freeze for DeviceWatcherCapabilities
impl RefUnwindSafe for DeviceWatcherCapabilities
impl Send for DeviceWatcherCapabilities
impl Sync for DeviceWatcherCapabilities
impl Unpin for DeviceWatcherCapabilities
impl UnsafeUnpin for DeviceWatcherCapabilities
impl UnwindSafe for DeviceWatcherCapabilities
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