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.

Get the UUID of Service.

Removes all of the Characteristics in the service and returns then in an iterator.

Even if not all of the Characteristics are not consumed, they are still removed.

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.