pub struct AddCharacteristicParameters {
pub service_handle: AttributeHandle,
pub characteristic_uuid: Uuid,
pub characteristic_value_len: u16,
pub characteristic_properties: CharacteristicProperty,
pub security_permissions: CharacteristicPermission,
pub gatt_event_mask: CharacteristicEvent,
pub encryption_key_size: EncryptionKeySize,
pub is_variable: bool,
}
Expand description
Parameters for the GATT Add Characteristic command.
Fields§
§service_handle: AttributeHandle
Handle of the service to which the characteristic has to be added
characteristic_uuid: Uuid
UUID of the characteristic
characteristic_value_len: u16
Maximum length of the characteristic value
characteristic_properties: CharacteristicProperty
Properties of the characteristic (defined in Volume 3, Part G, Section 3.3.3.1 of Bluetooth Specification 4.1)
security_permissions: CharacteristicPermission
Security requirements of the characteristic
gatt_event_mask: CharacteristicEvent
Which types of events will be generated when the attribute is accessed.
encryption_key_size: EncryptionKeySize
The minimum encryption key size requirement for this attribute.
is_variable: bool
If true, the attribute has a variable length value field. Otherwise, the value field length is fixed.
Auto Trait Implementations§
impl Freeze for AddCharacteristicParameters
impl RefUnwindSafe for AddCharacteristicParameters
impl Send for AddCharacteristicParameters
impl Sync for AddCharacteristicParameters
impl Unpin for AddCharacteristicParameters
impl UnwindSafe for AddCharacteristicParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more