pub enum GapEvent {
Connect {
conn_handle: ConnHandle,
status: Result<(), BleError>,
},
Disconnect {
conn_handle: ConnHandle,
reason: BleError,
},
Mtu {
conn_handle: ConnHandle,
value: u16,
},
Other,
}Expand description
Role-agnostic connection events. NimBLE multiplexes role-specific events (server:
Subscribe/NotifyComplete; client: Notify) onto the same connection callback, but those are
demuxed to GattsEvent /
GattcEvent — so they are not part of this enum.
Variants§
Trait Implementations§
Source§impl From<&ble_gap_event> for GapEvent
impl From<&ble_gap_event> for GapEvent
Source§fn from(event: &ble_gap_event) -> Self
fn from(event: &ble_gap_event) -> Self
Converts to this type from the input type.