pub enum InEvent {
Attached(Transport),
Detached(Transport),
Frame(Transport, FrameBuf),
Admin {
frame: AdminFrame,
reply_budget: usize,
},
CancelAlert,
Toggle(Setting),
ForceBluetoothOn,
}Expand description
Framing-free receive path and connection edges into the driver.
Variants§
Attached(Transport)
Detached(Transport)
Frame(Transport, FrameBuf)
Admin
One ULCP frame from a mesh administrator, whose response must fit
reply_budget octets. The driver answers on ADMIN_REPLY.
Authorization has already happened: the responder checked that the
packet arrived by unicast or blind unicast, that its source is
authenticated, and that the source key is listed in
PROP_DEV_ADMINS. Nothing that fails those checks reaches here.
CancelAlert
Someone cancelled a running locate alert at the device — the button press of whoever found the radio. Ignored when no alert is running, so a board may report the press unconditionally.
Toggle(Setting)
A switch was flipped at the device, on a board that offers the setting as a user-facing control. Ignored when the device lacks the capability behind it, so a board may report the press unconditionally.
ForceBluetoothOn
The hold-through-power-on ceremony fired: PROP_BLE_ENABLED must
end up on, whatever it was. Not a toggle — the same gesture on a
device already reachable would otherwise strand it — and ignored
entirely when Bluetooth is already on or the device has none.