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