Struct rustable::gatt::server::Service [−][src]
pub struct Service { /* fields omitted */ }
Expand description
A GATT service that is to be added to an Application
.
Implementations
Create new Service
.
A non-primary
services indicates that it is intended to be included by another service.
Set the handle to requested by the service.
If this is not set then one will be requested from Bluez.
Setting this can be useful because some remote devices (like Android devices) do not
handle changing handles very well.
When Application
is finally registered, if the requested handles are not unique
or they are already in use Bluez will reject the Application
registration.
Removes all of the Characteristic
s in the service and returns then in an iterator.
Even if not all of the Characteristic
s are not consumed, they are still removed.
Auto Trait Implementations
impl !RefUnwindSafe for Service
impl !UnwindSafe for Service