Enum bluez_async::DeviceEvent [−][src]
#[non_exhaustive]
pub enum DeviceEvent {
Discovered,
Connected {
connected: bool,
},
Rssi {
rssi: i16,
},
ManufacturerData {
manufacturer_data: HashMap<u16, Vec<u8>>,
},
ServiceData {
service_data: HashMap<Uuid, Vec<u8>>,
},
Services {
services: Vec<Uuid>,
},
ServicesResolved,
}
Expand description
Details of an event related to a Bluetooth device.
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.
Discovered
A new device has been discovered.
Connected
Fields
connected: bool
The device has connected or disconnected.
Rssi
Fields
rssi: i16
A new value is available for the RSSI of the device.
ManufacturerData
Fields
A new value is available for the manufacturer-specific advertisement data of the device.
ServiceData
Fields
New GATT service advertisement data is available for the device.
Services
Fields
The set of GATT services known for the device has changed.
ServicesResolved
Service discovery has completed.
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 DeviceEvent
impl Send for DeviceEvent
impl Sync for DeviceEvent
impl Unpin for DeviceEvent
impl UnwindSafe for DeviceEvent
Blanket Implementations
Mutably borrows from an owned value. Read more