#[non_exhaustive]pub enum ConnEvent {
Notification {
handle: u16,
value: Vec<u8>,
indication: bool,
},
ParamsUpdated(ConnParams),
PhyUpdated(Phy, Phy),
DataLengthChanged(DataLength),
SecurityChanged(Security),
MtuExchanged(u16),
Disconnected(u8),
}Expand description
Something that happened on one connection.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Notification
A notification or indication from the peer’s GATT server.
Fields
ParamsUpdated(ConnParams)
The parameters changed.
PhyUpdated(Phy, Phy)
The PHY changed: (tx, rx).
DataLengthChanged(DataLength)
The data length changed.
SecurityChanged(Security)
Encryption came on, or the key changed.
MtuExchanged(u16)
The ATT MTU was exchanged.
Disconnected(u8)
The connection closed, with the HCI reason.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConnEvent
impl RefUnwindSafe for ConnEvent
impl Send for ConnEvent
impl Sync for ConnEvent
impl Unpin for ConnEvent
impl UnsafeUnpin for ConnEvent
impl UnwindSafe for ConnEvent
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