Struct bluenrg::gatt::AddDescriptorParameters[][src]

pub struct AddDescriptorParameters<'a> {
    pub service_handle: ServiceHandle,
    pub characteristic_handle: CharacteristicHandle,
    pub descriptor_uuid: Uuid,
    pub descriptor_value_max_len: usize,
    pub descriptor_value: &'a [u8],
    pub security_permissions: DescriptorPermission,
    pub access_permissions: AccessPermission,
    pub gatt_event_mask: CharacteristicEvent,
    pub encryption_key_size: EncryptionKeySize,
    pub is_variable: bool,
}

Parameters for the GATT Add Characteristic Descriptor command.

Fields

Handle of the service to which characteristic belongs.

Handle of the characteristic to which description is to be added.

UUID of the characteristic descriptor.

See KnownDescriptor for some useful descriptors. This value is not restricted to the known descriptors, however.

The maximum length of the descriptor value.

Current Length of the characteristic descriptor value.

What security requirements must be met before the descriptor can be accessed.

What types of access are allowed for the descriptor.

Which types of events will be generated when the attribute is accessed.

The minimum encryption key size requirement for this attribute.

If true, the attribute has a variable length value field. Otherwise, the value field length is fixed.

Auto Trait Implementations

impl<'a> Send for AddDescriptorParameters<'a>

impl<'a> Sync for AddDescriptorParameters<'a>