#[non_exhaustive]pub struct NotificationState {
pub wireless_notifications: bool,
}Expand description
Indicates which notifications are enabled and thus sent by the receiver.
This information can be queried using Receiver::get_notification_state.
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.wireless_notifications: boolWhether the receiver sends device arrival/removal notifications.
Trait Implementations§
Source§impl Clone for NotificationState
impl Clone for NotificationState
Source§fn clone(&self) -> NotificationState
fn clone(&self) -> NotificationState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NotificationState
impl Debug for NotificationState
Source§impl Hash for NotificationState
impl Hash for NotificationState
Source§impl PartialEq for NotificationState
impl PartialEq for NotificationState
Source§fn eq(&self, other: &NotificationState) -> bool
fn eq(&self, other: &NotificationState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for NotificationState
impl Eq for NotificationState
impl StructuralPartialEq for NotificationState
Auto Trait Implementations§
impl Freeze for NotificationState
impl RefUnwindSafe for NotificationState
impl Send for NotificationState
impl Sync for NotificationState
impl Unpin for NotificationState
impl UnsafeUnpin for NotificationState
impl UnwindSafe for NotificationState
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