Enum bluez_async::BluetoothEvent[][src]

pub enum BluetoothEvent {
    Adapter {
        id: AdapterId,
        event: AdapterEvent,
    },
    Device {
        id: DeviceId,
        event: DeviceEvent,
    },
    Characteristic {
        id: CharacteristicId,
        event: CharacteristicEvent,
    },
}

An event relating to a Bluetooth device or adapter.

Variants

Adapter

An event related to a Bluetooth adapter.

Fields of Adapter

id: AdapterId

The ID of the Bluetooth adapter in question.

event: AdapterEvent

Details of the specific event.

Device

An event related to a Bluetooth device.

Fields of Device

id: DeviceId

The ID of the Bluetooth device in question.

event: DeviceEvent

Details of the specific event.

Characteristic

An event related to a GATT characteristic of a Bluetooth device.

Fields of Characteristic

id: CharacteristicId

The ID of the GATT characteristic in question.

event: CharacteristicEvent

Details of the specific event.

Trait Implementations

impl Clone for BluetoothEvent[src]

impl Debug for BluetoothEvent[src]

impl Eq for BluetoothEvent[src]

impl PartialEq<BluetoothEvent> for BluetoothEvent[src]

impl StructuralEq for BluetoothEvent[src]

impl StructuralPartialEq for BluetoothEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.