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.
A new device has been discovered.
The device has connected or disconnected.
Fields of Connected
connected: bool
A new value is available for the RSSI of the device.
Fields of Rssi
rssi: i16
A new value is available for the manufacturer-specific advertisement data of the device.
Fields of ManufacturerData
New GATT service advertisement data is available for the device.
Fields of ServiceData
The set of GATT services known for the device has changed.
Fields of Services
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