Struct rubble::link::ad_structure::ServiceUuids[][src]

pub struct ServiceUuids<'a, T: IsUuid> {
    complete: bool,
    data: BytesOr<'a, [T]>,
}
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: booldata: 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Converts self to bytes and writes them into writer, advancing writer to point past the encoded value. Read more

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.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.