Struct rubble::att::Attribute[][src]

pub struct Attribute<T> where
    T: ?Sized
{ pub att_type: AttUuid, pub handle: Handle, pub value: T, }
Expand description

An ATT server attribute

Fields

att_type: AttUuid

The type of the attribute as a UUID16, EG “Primary Service” or “Anaerobic Heart Rate Lower Limit”

handle: Handle

Unique server-side identifer for attribute

value: T

Attribute values can be any fixed length or variable length octet array, which if too large can be sent across multiple PDUs

Implementations

Creates a new attribute.

Retrieves the attribute’s value as a slice.

Overrides the previously set attribute’s value.

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 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.