Crate bluez_async[][src]

Expand description

An async wrapper around the D-Bus interface of BlueZ, the Linux Bluetooth daemon. This provides type-safe interfaces to a subset of the Bluetooth client (i.e. central, in Bluetooth terminology) interfaces exposed by BlueZ, focussing on the Generic Attribute Profile (GATT) of Bluetooth Low Energy (BLE).

Start by creating a BluetoothSession.

Structs

Opaque identifier for a Bluetooth adapter on the system.

Information about a Bluetooth adapter on the system.

A connection to the Bluetooth daemon. This can be cheaply cloned and passed around to be used from different places. It is the main entry point to the library.

The set of flags (a.k.a. properties) of a characteristic, defining how the characteristic can be used.

Opaque identifier for a GATT characteristic on a Bluetooth device.

Information about a GATT characteristic on a Bluetooth device.

Opaque identifier for a GATT characteristic descriptor on a Bluetooth device.

Information about a GATT descriptor on a Bluetooth device.

Opaque identifier for a Bluetooth device which the system knows about. This includes a reference to which Bluetooth adapter it was discovered on, which means that any attempt to connect to it will also happen from that adapter (in case the system has more than one).

Information about a Bluetooth device which was discovered.

A set of filter parameters for discovery. Parameters may be set to None to use the BlueZ defaults.

MAC address of a Bluetooth device.

A parsed modalias string.

An error parsing a MAC address from a string.

An error parsing a Modalias from a string.

Opaque identifier for a GATT service on a Bluetooth device.

Information about a GATT service on a Bluetooth device.

A set of options for a characteristic write operation.

Enums

Details of an event related to a Bluetooth adapter.

MAC address type of a Bluetooth device.

An error carrying out a Bluetooth operation.

An event relating to a Bluetooth device or adapter.

Details of an event related to a GATT characteristic.

Details of an event related to a Bluetooth device.

Error type for futures representing tasks spawned by this crate.

The type of transport to use for a scan.

The type of write operation to use.

Traits

An extension trait for Uuid which provides BLE-specific methods.

Functions

Convert a 16-bit BLE short UUID to a full 128-bit UUID by filling in the standard Bluetooth Base UUID.

Convert a 32-bit BLE short UUID to a full 128-bit UUID by filling in the standard Bluetooth Base UUID.