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
An event related to a Bluetooth adapter.
Fields
§
event: AdapterEvent
Details of the specific event.
Device
An event related to a Bluetooth device.
Fields
§
event: DeviceEvent
Details of the specific event.
Characteristic
An event related to a GATT characteristic of a Bluetooth device.
Fields
§
id: CharacteristicId
The ID of the GATT characteristic in question.
§
event: CharacteristicEvent
Details of the specific event.
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 for BluetoothEvent
impl PartialEq for BluetoothEvent
impl Eq for BluetoothEvent
impl StructuralPartialEq for BluetoothEvent
Auto Trait Implementations§
impl Freeze for BluetoothEvent
impl RefUnwindSafe for BluetoothEvent
impl Send for BluetoothEvent
impl Sync for BluetoothEvent
impl Unpin for BluetoothEvent
impl UnwindSafe for BluetoothEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more