Enum bluez_async::AdapterEvent [−][src]
#[non_exhaustive]
pub enum AdapterEvent {
Powered {
powered: bool,
},
Discovering {
discovering: bool,
},
}
Expand description
Details of an event related to a Bluetooth adapter.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Powered
Fields
powered: bool
The adapter has been powered on or off.
Discovering
Fields
discovering: bool
The adapter has started or stopped scanning for devices.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AdapterEvent
impl Send for AdapterEvent
impl Sync for AdapterEvent
impl Unpin for AdapterEvent
impl UnwindSafe for AdapterEvent
Blanket Implementations
Mutably borrows from an owned value. Read more