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
id: AdapterId
The ID of the Bluetooth adapter in question.
event: AdapterEvent
Details of the specific event.
An event related to a Bluetooth adapter.
Device
Fields
id: DeviceId
The ID of the Bluetooth device in question.
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
sourceimpl Clone for BluetoothEvent
impl Clone for BluetoothEvent
sourcefn clone(&self) -> BluetoothEvent
fn clone(&self) -> BluetoothEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BluetoothEvent
impl Debug for BluetoothEvent
sourceimpl PartialEq<BluetoothEvent> for BluetoothEvent
impl PartialEq<BluetoothEvent> for BluetoothEvent
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &BluetoothEvent) -> bool
fn ne(&self, other: &BluetoothEvent) -> bool
This method tests for !=
.
impl Eq for BluetoothEvent
impl StructuralEq for BluetoothEvent
impl StructuralPartialEq for BluetoothEvent
Auto Trait Implementations
impl RefUnwindSafe for BluetoothEvent
impl Send for BluetoothEvent
impl Sync for BluetoothEvent
impl Unpin for BluetoothEvent
impl UnwindSafe for BluetoothEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more