pub struct GattData<'stack, P: PacketPool> { /* private fields */ }
Expand description
A GATT payload ready for processing.
Implementations§
Source§impl<'stack, P: PacketPool> GattData<'stack, P>
impl<'stack, P: PacketPool> GattData<'stack, P>
Sourcepub fn handle(&self) -> Option<u16>
pub fn handle(&self) -> Option<u16>
Return the characteristic handle that this GATT request is related to, if applicable.
Returns None
if the request is not related to a characteristic handle (e.g. a service discovery request).
Sourcepub async fn send_unsolicited(
connection: &Connection<'_, P>,
uns: AttUns<'_>,
) -> Result<(), Error>
pub async fn send_unsolicited( connection: &Connection<'_, P>, uns: AttUns<'_>, ) -> Result<(), Error>
Send an unsolicited ATT PDU without having a request (e.g. notification or indication)
Auto Trait Implementations§
impl<'stack, P> Freeze for GattData<'stack, P>
impl<'stack, P> !RefUnwindSafe for GattData<'stack, P>
impl<'stack, P> !Send for GattData<'stack, P>
impl<'stack, P> !Sync for GattData<'stack, P>
impl<'stack, P> Unpin for GattData<'stack, P>
impl<'stack, P> !UnwindSafe for GattData<'stack, P>
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