Struct bluer::Session [−][src]
pub struct Session { /* fields omitted */ }
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.
Stream adapter added and removed events.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Session
impl !UnwindSafe for Session
Blanket Implementations
Mutably borrows from an owned value. Read more