pub enum GattConnectionEvent<'stack, 'server, P: PacketPool> {
Disconnected {
reason: Status,
},
PhyUpdated {
tx_phy: PhyKind,
rx_phy: PhyKind,
},
ConnectionParamsUpdated {
conn_interval: Duration,
peripheral_latency: u16,
supervision_timeout: Duration,
},
RequestConnectionParams {
min_connection_interval: Duration,
max_connection_interval: Duration,
max_latency: u16,
supervision_timeout: Duration,
},
DataLengthUpdated {
max_tx_octets: u16,
max_tx_time: u16,
max_rx_octets: u16,
max_rx_time: u16,
},
Gatt {
event: GattEvent<'stack, 'server, P>,
},
}
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
RequestConnectionParams
A request to change the connection parameters.
Fields
DataLengthUpdated
The data length was changed for this connection.
Fields
Gatt
GATT event.
Auto Trait Implementations§
impl<'stack, 'server, P> Freeze for GattConnectionEvent<'stack, 'server, P>
impl<'stack, 'server, P> !RefUnwindSafe for GattConnectionEvent<'stack, 'server, P>
impl<'stack, 'server, P> !Send for GattConnectionEvent<'stack, 'server, P>
impl<'stack, 'server, P> !Sync for GattConnectionEvent<'stack, 'server, P>
impl<'stack, 'server, P> Unpin for GattConnectionEvent<'stack, 'server, P>
impl<'stack, 'server, P> !UnwindSafe for GattConnectionEvent<'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