pub struct GattConnection<'stack, 'server, P: PacketPool> { /* private fields */ }
Expand description
Used to manage a GATT connection with a client.
Implementations§
Source§impl<'stack, 'server, P: PacketPool> GattConnection<'stack, 'server, P>
impl<'stack, 'server, P: PacketPool> GattConnection<'stack, 'server, P>
Sourcepub async fn next(&self) -> GattConnectionEvent<'stack, 'server, P>
pub async fn next(&self) -> GattConnectionEvent<'stack, 'server, P>
Wait for the next GATT connection event.
Uses the attribute server to handle the protocol.
Sourcepub fn raw(&self) -> &Connection<'stack, P>
pub fn raw(&self) -> &Connection<'stack, P>
Get a reference to the underlying BLE connection.
Trait Implementations§
Source§impl<P: PacketPool> Drop for GattConnection<'_, '_, P>
impl<P: PacketPool> Drop for GattConnection<'_, '_, P>
Auto Trait Implementations§
impl<'stack, 'server, P> Freeze for GattConnection<'stack, 'server, P>
impl<'stack, 'server, P> !RefUnwindSafe for GattConnection<'stack, 'server, P>
impl<'stack, 'server, P> !Send for GattConnection<'stack, 'server, P>
impl<'stack, 'server, P> !Sync for GattConnection<'stack, 'server, P>
impl<'stack, 'server, P> Unpin for GattConnection<'stack, 'server, P>
impl<'stack, 'server, P> !UnwindSafe for GattConnection<'stack, 'server, 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