Enum bluez_async::BluetoothEvent
source · pub enum BluetoothEvent {
Adapter {
id: AdapterId,
event: AdapterEvent,
},
Device {
id: DeviceId,
event: DeviceEvent,
},
Characteristic {
id: CharacteristicId,
event: CharacteristicEvent,
},
}
Expand description
An event relating to a Bluetooth device or adapter.
Variants§
Adapter
Fields
§
event: AdapterEvent
Details of the specific event.
An event related to a Bluetooth adapter.
Device
Fields
§
event: DeviceEvent
Details of the specific event.
An event related to a Bluetooth device.
Characteristic
Fields
§
id: CharacteristicId
The ID of the GATT characteristic in question.
§
event: CharacteristicEvent
Details of the specific event.
An event related to a GATT characteristic of a Bluetooth device.
Trait Implementations§
source§impl Clone for BluetoothEvent
impl Clone for BluetoothEvent
source§fn clone(&self) -> BluetoothEvent
fn clone(&self) -> BluetoothEvent
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 BluetoothEvent
impl Debug for BluetoothEvent
source§impl PartialEq<BluetoothEvent> for BluetoothEvent
impl PartialEq<BluetoothEvent> for BluetoothEvent
source§fn eq(&self, other: &BluetoothEvent) -> bool
fn eq(&self, other: &BluetoothEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.