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.
Auto Trait Implementations
impl !RefUnwindSafe for Application
impl Send for Application
impl Sync for Application
impl Unpin for Application
impl !UnwindSafe for Application