pub enum GattConnectionEvent<'stack, 'server> {
Disconnected {
reason: Status,
},
PhyUpdated {
tx_phy: PhyKind,
rx_phy: PhyKind,
},
ConnectionParamsUpdated {
conn_interval: Duration,
peripheral_latency: u16,
supervision_timeout: Duration,
},
Gatt {
event: Result<GattEvent<'stack, 'server>, Error>,
},
}
Expand description
A GATT connection event.
Variants§
Disconnected
Connection disconnected.
PhyUpdated
The phy settings was updated for this connection.
ConnectionParamsUpdated
The phy settings was updated for this connection.
Fields
Gatt
GATT event.
Auto Trait Implementations§
impl<'stack, 'server> Freeze for GattConnectionEvent<'stack, 'server>
impl<'stack, 'server> !RefUnwindSafe for GattConnectionEvent<'stack, 'server>
impl<'stack, 'server> !Send for GattConnectionEvent<'stack, 'server>
impl<'stack, 'server> !Sync for GattConnectionEvent<'stack, 'server>
impl<'stack, 'server> Unpin for GattConnectionEvent<'stack, 'server>
impl<'stack, 'server> !UnwindSafe for GattConnectionEvent<'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