Struct rustable::Adapter[][src]

pub struct Adapter { /* fields omitted */ }
Expand description

This struct represents a local Bluetooth adapter.

It can be used to query and configure the local adapter, get remote Devices, and host local GATT services.

Implementations

Create an Adapter to interface with a specific Bluetooth adapter using an existing async_rustbus::RpcConn

Create an Adapter to interface with a specific Bluetooth adapter.

Get the MAC of the local adapter.

Turn the Bluetooth adapter on (true) or off.

Check if the device is powered on (true) or off.

Get the DBus ObjectPath of this remote device.

Get the MACs of remote devices that the adapter knows of.

This will included connected devices, paired devices, and visible devices (if discovery is enabled).

Get Device for the given MAC.

Get a reference to Arc<async_rustbus::RpcConn> used to communicate with the Bluez daemon.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.