Enum bluez_async::AdapterEvent
source · #[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
The adapter has been powered on or off.
Discovering
The adapter has started or stopped scanning for devices.
Trait Implementations§
source§impl Clone for AdapterEvent
impl Clone for AdapterEvent
source§fn clone(&self) -> AdapterEvent
fn clone(&self) -> AdapterEvent
Returns a copy of the value. Read more
1.0.0 · 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 AdapterEvent
impl Debug for AdapterEvent
source§impl PartialEq<AdapterEvent> for AdapterEvent
impl PartialEq<AdapterEvent> for AdapterEvent
source§fn eq(&self, other: &AdapterEvent) -> bool
fn eq(&self, other: &AdapterEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.