Struct bluer::Session[][src]

pub struct Session { /* fields omitted */ }
This is supported on crate feature bluetoothd only.
Expand description

Bluetooth session.

Encapsulates a connection to the system Bluetooth daemon.

Implementations

Create a new Bluetooth session.

This establishes a connection to the system Bluetooth daemon over D-Bus.

Enumerate connected Bluetooth adapters and return their names.

Create an interface to the Bluetooth adapter with the specified name.

This registers a Bluetooth authorization agent handler.

Every application can register its own agent and for all actions triggered by that application its agent is used.

It is not required by an application to register an agent. If an application does chooses to not register an agent, the default agent is used. This is on most cases a good idea. Only application like a pairing wizard should register their own agent.

An application can only register one agent. Multiple agents per application is not supported.

Drop the returned AgentHandle to unregister the agent.

This registers a Bluetooth profile implementation for RFCOMM connections.

The returned ProfileHandle provides a stream of connection requests.

Drop the handle to unregister the profile.

Stream adapter added and removed events.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.