Struct bluenrg::event::GattAttributeModified [−][src]
pub struct GattAttributeModified { pub conn_handle: ConnectionHandle, pub attr_handle: AttributeHandle, pub offset: usize, pub continued: bool, // some fields omitted }
This event is generated to the application by the ATT server when a client modifies any attribute on the server, as consequence of one of the following ATT procedures:
- write without response
- signed write without response
- write characteristic value
- write long characteristic value
- reliable write
Fields
conn_handle: ConnectionHandle
The connection handle which modified the attribute
attr_handle: AttributeHandle
Handle of the attribute that was modified
offset: usize
Offset of the reported value inside the attribute.
continued: bool
If the entire value of the attribute does not fit inside a single GattAttributeModified event, this is true to notify that other GattAttributeModified events will follow to report the remaining value.
Methods
impl GattAttributeModified
[src]
impl GattAttributeModified
pub fn data(&self) -> &[u8]
[src]
pub fn data(&self) -> &[u8]
Returns the valid attribute data returned by the ATT attribute modified event as a slice of bytes.
Trait Implementations
impl Copy for GattAttributeModified
[src]
impl Copy for GattAttributeModified
impl Clone for GattAttributeModified
[src]
impl Clone for GattAttributeModified
fn clone(&self) -> GattAttributeModified
[src]
fn clone(&self) -> GattAttributeModified
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for GattAttributeModified
[src]
impl Debug for GattAttributeModified
Auto Trait Implementations
impl Send for GattAttributeModified
impl Send for GattAttributeModified
impl Sync for GattAttributeModified
impl Sync for GattAttributeModified