Skip to main content

Module backend

Module backend 

Source
Expand description

The contract between OpenLogi’s HID++ layer and the HID stack beneath it.

HidBackend is the seam. Above it sits everything that knows HID++ and nothing about a host; below it sits one implementation per host HID API — openlogi-hid over async-hid today, a scripted device tree in tests, and WebHID under wasm if that is ever built.

Its own dependencies stay host-free for the same reason, which CI’s wasm (portable crates) job checks rather than trusts. The conversions from a backend’s own types belong with that backend, never here.

Structs§

NodeId
Opaque identity of one HID node, as the backend that enumerated it names it.
NodeInfo
One HID node as the backend reports it, before anything is opened.

Enums§

BackendError
A failure raised by the HID backend beneath the HID++ channel layer.
HotplugEvent
A HID node appeared on or vanished from the OS device tree.

Traits§

HidBackend
The HID stack beneath OpenLogi’s HID++ layer.
RawWriter
A raw output-report sink, for reports the HID++ framing cannot model.

Type Aliases§

HotplugStream
A stream of HotplugEvents, boxed so HidBackend stays object-safe.