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