pub enum ConnectionEvent<'stack> {
Disconnected {
reason: Status,
},
PhyUpdated {
tx_phy: PhyKind,
rx_phy: PhyKind,
},
ConnectionParamsUpdated {
conn_interval: Duration,
peripheral_latency: u16,
supervision_timeout: Duration,
},
Gatt {
data: GattData<'stack>,
},
}
Expand description
A 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> Freeze for ConnectionEvent<'stack>
impl<'stack> !RefUnwindSafe for ConnectionEvent<'stack>
impl<'stack> !Send for ConnectionEvent<'stack>
impl<'stack> !Sync for ConnectionEvent<'stack>
impl<'stack> Unpin for ConnectionEvent<'stack>
impl<'stack> !UnwindSafe for ConnectionEvent<'stack>
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