Struct rubble::link::ad_structure::ServiceUuids [−][src]
Expand description
List of service UUIDs offered by the device.
The list can be marked as complete or incomplete. For an incomplete list, more UUIDs can be sent in the scan response.
The ServiceUuids
type can handle 16-, 32-, and full-size 128-bit UUIDs.
Fields
complete: bool
data: BytesOr<'a, [T]>
Implementations
Creates a ServiceUuids
container from a list of UUIDs.
Returns a boolean indicating whether this list is complete.
If this returns false
, the device offers more services not contained
in this list.
Returns an iterator over the UUIDs stored in self
.
Trait Implementations
Decodes ServiceUuids
from a byte sequence containing:
TYPE
: The right “(In)complete List of N-bit Service Class UUIDs” type. Both the complete and incomplete type are accepted.UUID
…: n*2/4/16 Bytes of UUID data, in little endian.
Decode a Self
from a byte slice, advancing bytes
to point past the data that was read. Read more
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for ServiceUuids<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for ServiceUuids<'a, T> where
T: Sync,
impl<'a, T> Sync for ServiceUuids<'a, T> where
T: Sync,
impl<'a, T> Unpin for ServiceUuids<'a, T>
impl<'a, T> UnwindSafe for ServiceUuids<'a, T> where
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more