[][src]Struct bluenrg::event::GattAttributeModified

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.

Implementations

impl GattAttributeModified[src]

pub fn data(&self) -> &[u8][src]

Returns the valid attribute data returned by the ATT attribute modified event as a slice of bytes.

Trait Implementations

impl Clone for GattAttributeModified[src]

impl Copy for GattAttributeModified[src]

impl Debug for GattAttributeModified[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.