Struct rustable::gatt::server::Application[][src]

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

Use to build an application containing local GATT services that can be used by remote devices.

Implementations

Create new Application that is assocated with the given adapter.

This app will use the given conn to interact with Bluez to provide the services.

Create new Application that is assocated with the given adapter.

The connection used to interact with Bluez daemon is the same as the one used in hci.

Requests a DBus name for the Application using its DBus connection.

If the destination is in use this will fail and not place the connection in the name queue.

Notes

  • When the application is dropped, the underlying connection will not drop the name.

Get the DBus name currently in use for the Application.

Add a GATT service to the Application.

Remove a GATT service from the Application.

Set whether the Application should filter out DBus messages coming from sources other than the Bluez daemon.

true (the default) will filter out messages while false will allow all messages. This can be useful debugging, but users should be cautious as this will give all users on the local device access to the application.

Get whether the Application is filtering out incoming DBus messages from sources other than the Bluez daemon.

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

Register the application with Bluez daemon, and begin a worker thread to run the service.

Notes

  • This makes the org.bluez.GattManager1.RegisterApplication DBus call, starting the application.

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.