Introducing a new way to review your PRs.

Read the announcement

aprilnea / openlogi

⚡️A native, local-first alternative to Logitech Options+, written in Rust 🦀 — remap buttons, DPI, and SmartShift over HID++. No account, no telemetry.

View on GitHub

25 documents · Updated Nov 23, 2026

docs / device-integration

Device integration stack

The device integration stack turns host HID nodes into stable device views and safe hardware actions. It separates transport access, device inventory, route ownership, device controls, sessions, and Logitech HID++ protocol work so direct devices and receiver-backed devices use one model. It also checks device identity before a long-lived action changes or restores state. The stack is described in the child pages for generic HID transport, device-domain runtime support, device registry support, and Logitech HID++ protocol support.

Integration layers

Each layer answers one broad question and passes a smaller contract to the next layer. This lets host access change without changing device policy, while live device evidence controls which features the application exposes.

LayerMain questionResult
Device registryWhat hardware identity is stable?USB and HID identity, product family, protocol family, driver family, and model data
HID transportWhich host nodes can carry device traffic?Candidate nodes and open report channels
Device domainWhat is present and how can it be used?Inventory, routes, shared channels, writes, sessions, and pairing
HID++ protocolWhich receiver or device is addressed?Protocol requests, feature state, register state, and device events
Replay and evidenceCan the behavior be checked without hardware?Sanitized traffic and a virtual device topology

The device domain owns policy above the HidBackend contract. The native HID crate supplies host access. Tests and other hosts can supply another backend, which keeps the domain model portable. The backend contract reduces host failures to a disconnected device or a backend error, and hotplug events carry only the fact that enumeration must run again. crates/…/lib.rs• L1-13 crates/…/backend.rs• L24-58 crates/…/backend.rs• L142-178

Hardware identity and route model

Hardware identity gives discovery, inventory, controls, and pairing a shared vocabulary. A route then gives a device a current address without making a receiver slot or an operating-system node its permanent identity.

Identity and capability boundaries

Stable identity classifies hardware, but it does not prove that a control is available. Inventory derives capabilities from a live feature probe or a retained last-good probe. Device kind remains an identity hint, so a product label cannot enable a control that the device does not expose.

The stack keeps separate vocabularies for USB identity, receiver family, receiver protocol, driver family, model ID, HID++ device kind, and core device kind. Each boundary converts between them. Direct raw-HID and UVC devices can still receive identity and names without entering the HID++ control path.

References: crates/…/features.rs• L45-74 crates/…/mappings.rs• L27-97 crates/…/standalone.rs• L14-156

Device routes

A device route is the application-facing address for one device. Receiver routes include receiver identity and pairing slot. Direct routes address the attached device. Standalone raw-HID routes retain enough HID identity to distinguish the device without inventing a pairing slot. crates/…/lib.rs• L40-49 crates/…/channel.rs• L26-65

Routes are current addresses, not proof that a channel is usable. Inventory publishes the current shared channel for a route. Operations that hold a channel can detect when its publication is stale. A receiver slot can go offline while its transport stays present, so sessions distinguish an offline slot from a retired transport. When an operation must later restore or continue state, the HID++ DeviceInformation unit ID provides a second check that the same device still answers on that route. crates/…/registry.rs• L218-392 crates/…/inventory.rs• L719-733 crates/…/unit_id.rs• L16-52

References: crates/…/lib.rs• L40-49 crates/…/channel.rs• L26-95 crates/…/registry.rs• L218-392 crates/…/inventory.rs• L719-733 crates/…/unit_id.rs• L16-52

Host transport boundary

The host transport boundary turns operating-system HID objects into generic backend and channel contracts. It owns platform access and report handling. The device domain decides which nodes to probe and how to publish them. The full discovery model is in HID device discovery.

HID nodes and shared channels

Transport discovery selects HID++ candidates and opens report channels. The native backend keeps one host manager and filters supported vendor collections. It excludes virtual child nodes below receiver nodes because HID++ traffic must use the receiver node.

A channel carries request replies and unsolicited device events. It also exposes complete wire-framed reports to raw listeners, which lets a shared node support vendor reports that are not HID++ messages. Its lifetime ties together request matching, event delivery, raw report capture, and the route it serves. Each native channel leases a software ID for its node. When a channel is replaced, old users must stop treating the retired connection as current. crates/…/raw_and_listeners.rs• L137-195

Raw output has a separate size limit from input reads. This keeps the read path wide enough for every input report while allowing a supported large vendor output report to reach the transport without truncation. Empty and oversized output is rejected before host I/O. crates/…/raw_and_listeners.rs• L20-70

References: crates/…/host.rs• L1-120 crates/…/lib.rs• L1-80 crates/…/backend.rs• L47-178 crates/…/channel.rs• L1-95 crates/…/channel_cache.rs• L14-248 crates/…/raw.rs• L25-129 crates/…/raw_and_listeners.rs• L20-195

Backend seam

HidBackend supplies enumeration, HID++ opening, raw-writer access, and hotplug watching. The device layer supplies common policy for probing, retry, route publication, writes, sessions, and pairing. A scripted backend can exercise the same policy without physical hardware.

This boundary is also a portability contract. Host access stays below it, so the device domain can build for targets without an operating-system HID API. Backend-specific errors remain below the seam except for the small disconnected-versus-other distinction that upper layers need. crates/…/backend.rs• L24-45 crates/…/backend.rs• L142-200 crates/…/Cargo.toml• L17-31

References: crates/…/backend.rs• L24-45 crates/…/backend.rs• L47-128 crates/…/backend.rs• L130-200 crates/…/Cargo.toml• L17-31 crates/…/host.rs• L1-120

Host-wide arbitration

Host-wide arbitration protects receiver register exchanges that cannot be isolated inside one process. Software IDs separate many HID++ 2.0 replies. HID++ 1.0 receiver-register replies do not carry enough identity, so participating processes serialize those phases.

The lock is bounded. A caller that cannot acquire a receiver phase defers the probe instead of proceeding without protection. This keeps another process's reply from becoming false device absence or a channel failure. crates/…/host_lock.rs• L1-12 crates/…/host_lock.rs• L130-179

References: crates/…/host_lock.rs• L1-12 crates/…/host_lock.rs• L75-179 crates/…/probe.rs• L359-445

Device-domain coordination

The device domain converts open channels into an application view of hardware. Inventory is the authority for presence and capability. The channel registry carries that authority to controls and sessions.

Inventory reconciliation

Inventory performs an authoritative pass over the nodes reported by the backend. A receiver pass combines receiver identity, pairing data, and link state. A direct-device pass addresses the device itself. Feature probing adds names, model data, battery state, and capabilities.

Receiver and direct-device paths use different evidence. A receiver can list a paired but sleeping device from pairing data. A direct device must answer enough of its feature probe to be recognized. A receiver pass remains incomplete when its device list is only partial, so the last good inventory stays visible instead of becoming a smaller device set. crates/…/probe.rs• L260-315 crates/…/direct.rs• L31-177

Lifecycle notifications and hotplug events are hints that request another full reconciliation. A persistent enumerator coalesces event bursts, reuses open channels, and performs bounded recovery work when a node is slow or unreachable. One-shot enumeration retries incomplete or changing snapshots before it returns. A settings revision tells clients that a setting changed outside the current request and must be read again.

The node channel state keeps one clear lifecycle for each host node. A channel can serve, retire while it drains, await a replacement, or serve as a replacement while the last-good inventory remains online. This prevents a stale channel from being published and lets recovery distinguish a real reconnect from an unseen replacement. crates/…/inventory.rs• L468-771 crates/…/channel_cache.rs• L14-248

References: crates/…/inventory.rs• L173-225 crates/…/inventory.rs• L468-771 crates/…/probe.rs• L260-315 crates/…/direct.rs• L31-177 crates/…/channel_cache.rs• L14-248

Probe cache and persistence

The probe cache keeps expensive and mostly stable data such as identity, feature indexes, event indexes, and capabilities. Volatile values such as battery readings are refreshed. When a refresh fails, the cache can preserve the last-known identity and capability view, but it does not prove that the channel is reachable.

Only identities that remain safe across a restart are persisted. Receiver-slot and direct-node keys remain runtime-only because host enumeration or pairing can assign them to another device. Persisted probe data has a schema version. A mismatch starts a cold probe instead of guessing from old data. crates/…/channel_cache.rs• L1-5 crates/…/inventory.rs• L774-888

Battery support follows the source the device exposes. Direct percentage sources take priority over voltage estimates. An ADC source can report that a wireless headset is unlinked. A charging state can change while the last known percentage remains valid. crates/…/features.rs• L144-269 crates/…/battery.rs• L15-67

References: crates/…/inventory.rs• L774-888 crates/…/features.rs• L144-269 crates/…/events.rs• L346-401 crates/…/battery.rs• L15-67

Device event coordination

Device events are signals for the inventory and user interface. Lifecycle events request a full inventory reconciliation instead of changing inventory directly. Setting broadcasts bump a per-device revision so clients re-read the setting. Backlight events keep the latest display value, while lock-key events report named key changes when a prior state is known.

The event state protects against races between a one-time lock-state read, a broadcast, and a device reconnect. A broadcast during a read wins. A reply from the old connection is ignored. A failed read is not retried on every scan. crates/…/events.rs• L61-123 crates/…/lock_keys.rs• L11-97

References: crates/…/events.rs• L196-293 crates/…/events.rs• L346-493 crates/…/lock_keys.rs• L11-97

Sessions and device operations

Route-based operations resolve a route to a channel. Channel-based operations reuse the channel already owned by inventory or a session. This lets reads, writes, event capture, and restore work against one device connection.

The write layer exposes one device API over several HID++ generations. It covers pointer settings, wheel behavior, keyboard lock, lighting, battery, report rate, haptics, disabled keys, force sensing, audio controls, and diagnostics. Controls are gated by reported support. State-changing operations confirm the value when the device supports read-back. Actions that may later restore state also retain enough device identity evidence to avoid applying that restore to a replacement on the same route. crates/…/write.rs• L1-9 crates/…/unit_id.rs• L16-52

Capture sessions temporarily divert selected mouse, wheel, or keyboard controls and turn their reports into application input. They use the inventory-owned channel, re-arm after a wireless reconnect, and restore firmware state before they finish. A pending restore stays owned until a current publication can complete it. crates/…/capture_restore.rs• L289-459 crates/…/gesture.rs• L210-249 crates/…/keyboard.rs• L96-151

Gesture support can use a dedicated gesture feature or a compatible thumb-wheel path when the device has no dedicated feature. The session still uses the same ownership and restore rules, so a new input path does not bypass reconnect handling. crates/…/arm.rs• L1-180 crates/…/thumbwheel.rs• L1-180

Host-switch sessions link a keyboard to follower devices that share its host choices. They move followers before a keyboard leaves its current host, and they restore temporary keyboard control after the session ends. A unit-ID check can refuse a switch when the receiver slot now answers as another device. crates/…/host_switch.rs• L223-339 crates/…/host_switch.rs• L1094-1144

Haptic and RGB actions use the same ownership model for temporary device state. Haptic playback keeps a session-level feature view and restores an enable change only when the same device still reports the recorded state. RGB control records the device identity with its temporary lease so a replacement device is not handed back another device's claim. crates/…/haptic.rs• L226-372 crates/…/rgb.rs• L29-58 crates/…/rgb.rs• L261-303

References: crates/…/write.rs• L1-216 crates/…/unit_id.rs• L16-52 crates/…/haptic.rs• L226-425 crates/…/rgb.rs• L29-58 crates/…/rgb.rs• L261-303 crates/…/capture_restore.rs• L289-459 crates/…/gesture.rs• L210-249 crates/…/arm.rs• L1-180 crates/…/keyboard.rs• L96-151 crates/…/host_switch.rs• L223-339 crates/…/thumbwheel.rs• L1-180

Receiver pairing

Pairing is a separate device operation. It owns the receiver work needed to discover or add a device, reports progress to the caller, and asks inventory to discover the new slot after the receiver phase is released.

Inventory and pairing share receiver identity evidence. This keeps explicit receiver selection tied to the intended physical receiver even when no paired-device route is available. Pairing failure or cancellation releases its receiver action before normal inventory work resumes. crates/…/receiver.rs• L1-180 crates/…/host_lock.rs• L130-179

References: crates/…/receiver.rs• L1-180 crates/…/probe.rs• L359-445 crates/…/host_lock.rs• L130-179

Logitech protocol operations

The Logitech protocol layer supplies the common language for receivers and peripherals. It supports protocol detection, feature discovery, typed feature access, state events, and the different addressing rules for receiver registers and device features. The broader protocol model is in Logitech HID++ protocol support.

Protocol and feature model

HID++ 1.0 is used mainly for receiver register and pairing work. HID++ 2.0 devices expose a feature table whose entries identify the functions available on that device. The protocol layer resolves those entries to typed feature interfaces. The device layer turns the result into inventory and controls.

HID++ 1.0 has no feature table. Its fixed registers are checked for support and read under the receiver register phase. HID++ 2.0 requests use device indexes and software IDs. Unsolicited feature events use the same shared channel.

Feature events share the channel with requests, but request replies remain distinct from events. A feature endpoint owns the address and framing for one device-feature pair. Shared event sources filter reports before feature-specific decoding. Raw listeners provide a separate wire-level path for complete reports that are not HID++ messages, so foreign vendor traffic can reach the feature or device code that owns it without entering HID++ parsing. crates/…/channel.rs• L764-895 crates/…/raw_and_listeners.rs• L137-195 crates/…/feature.rs• L85-205

The pending-request queue owns each correlation key through its full lifecycle: free, in flight, or stale while late replies remain possible. This prevents two requests from sharing one reply header. It also makes a late reply a discarded stale reply instead of an answer to a newer request. crates/…/pending.rs• L1-220 crates/…/channel.rs• L850-890

References: crates/…/protocol.rs• L13-43 crates/…/register.rs• L1-11 crates/…/channel.rs• L1-30 crates/…/channel.rs• L764-895 crates/…/pending.rs• L1-220 crates/…/feature.rs• L85-205 crates/…/registry.rs• L71-276 crates/…/raw.rs• L88-129 crates/…/raw_and_listeners.rs• L137-195

Feature capability mapping

Capability mapping combines feature presence with the answers needed to know whether a setting is usable. A feature can exist but be hidden, read-only, incomplete, or limited to a device mode. Inventory keeps these cases distinct so an unanswered read does not become a false lack of support.

The device layer maps several protocol generations to one product model. This includes battery sources, DPI feature generations, keyboard platform support, event-capable settings, device names, and device information. A failed capability read keeps the prior complete capability set and requests repair. crates/…/features.rs• L341-351 crates/…/features.rs• L641-716 crates/…/device_friendly_name.rs• L1-100

Device names come from the best available device evidence. A direct device prefers its HID++ marketing name over a generic host label. Device type and name data remains protocol evidence rather than a direct capability switch. crates/…/direct.rs• L18-29 crates/…/device_type_and_name.rs• L1-120

References: crates/…/features.rs• L341-351 crates/…/features.rs• L641-716 crates/…/direct.rs• L90-177 crates/…/device_friendly_name.rs• L1-100 crates/…/device_type_and_name.rs• L1-120

State-changing controls

Device controls follow a read, validate, write, and confirm pattern when the protocol supports confirmation. This keeps the application from reporting a requested value that firmware clipped, ignored, or could not apply.

Control ownership follows the shared-channel rules. A bounded operation can return on a response deadline. An owned write-through operation waits for submitted native reports to finish before it releases the channel needed for cleanup. Diagnostics expose protocol evidence without bypassing the same channel and route ownership. crates/…/write.rs• L1-216 crates/…/diagnostics.rs• L1-180

Temporary controls use identity-bound leases or restore tokens when a route can later hold another device. The write layer uses one unit-ID helper for its identity reads and error policy. Haptic and RGB restoration then check the recorded identity and current state before undoing a change. Host switching performs its own identity check before a device-changing write. crates/…/unit_id.rs• L16-52 crates/…/host_switch.rs• L1094-1144 crates/…/haptic.rs• L329-372 crates/…/rgb.rs• L261-303

References: crates/…/write.rs• L1-216 crates/…/diagnostics.rs• L1-180 crates/…/haptic.rs• L255-372 crates/…/rgb.rs• L198-303 crates/…/unit_id.rs• L16-52 crates/…/host_switch.rs• L1094-1144 crates/…/tests.rs• L1-180

Evidence and replay

The stack has an evidence path for debugging and repeatable validation. Native traffic can become sanitized fixtures. Replay can then run production device behavior against a virtual topology without physical hardware.

Deterministic replay

Replay models nodes, channels, connection state, receiver slots, hotplug signals, incoming reports, and response timing. Topology changes and hotplug delivery are independent, so tests can cover missed events, stale channels, delayed replies, partial probes, and recovery.

Cassette matching is strict. An unexpected request, an invalid receiver-slot state, or an unconsumed required exchange fails the replay. Replay does not invent firmware responses to make a test pass. crates/…/replay.rs• L1-60 crates/…/backend.rs• L154-275 crates/…/session_replay_tests.rs• L50-228

Replay drives inventory, route operations, event wakeups, channel replacement, session restoration, and write confirmation. Recent session coverage also checks gesture and thumb-wheel capture against replayed hardware. crates/…/replay_tests.rs• L138-649 crates/…/gesture46.rs• L1-232

References: crates/…/replay.rs• L1-60 crates/…/backend.rs• L154-275 crates/…/session_replay_tests.rs• L50-228 crates/…/replay_tests.rs• L138-649 crates/…/gesture46.rs• L1-232

Recording and fixture sanitization

Recording turns a completed channel lifetime into a replay cassette only when its report support, request outcomes, response correlation, and protocol coverage are proven. The sanitizer replaces receiver and device identities with relation-preserving synthetic values and rejects evidence that cannot be replayed safely.

This protects both privacy and test value. Equal source identities remain equal in a cassette, but native identity bytes never enter the fixture. Unmatched reports are ignored only when they cannot answer a recorded request. They are rejected when they make a recorded answer uncertain. crates/…/recording.rs• L1-120 crates/…/tests.rs• L1-180 crates/…/tests.rs• L1-180

References: crates/…/recording.rs• L1-120 crates/…/tests.rs• L1-180 crates/…/tests.rs• L1-180

Device lifecycle

Inventory remains the authority for what the system currently knows. Routes and shared channels carry that authority to reads, writes, pairing, and sessions.

This diagram shows how transport discovery becomes a route and then an application operation.

flowchart LR
    A[OS HID nodes] --> B[Transport discovery]
    B --> C{Device path}
    C -->|Receiver or direct HID++| D[Shared HID++ channel]
    C -->|Standalone raw HID or UVC| E[Driver-specific identity]
    D --> F[Authoritative probe]
    F --> G[Inventory and channel registry]
    G --> H[Device route]
    H --> I[Read, write, pairing, or session]
    E --> H

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep USB identity, receiver family, receiver protocol, driver family, model ID, device kind, pairing slot, direct-device identity, and unit ID as separate facts.
  • Keep route publication, shared-channel ownership, stale-channel detection, and channel replacement aligned. A route must not write through a retired connection.
  • Keep the HidBackend boundary free of host-only dependencies so portable device-domain builds remain possible.
  • Keep host-wide register locks aligned with every receiver-register read and write. A caller must defer rather than join a held phase unlocked.
  • Keep receiver completeness, direct-device discrimination, identity naming, and last-good inventory replay aligned. A partial probe must not publish a smaller authoritative view.
  • Keep the single node channel lifecycle aligned with ledger replay and registry publication. A failed channel must drain before reopen. An unseen replacement must not look like an ordinary reconnect.
  • Keep input report buffer size, raw output bounds, raw listener delivery, and HID++ parsing order aligned. A vendor report must remain whole on the raw path and must not enter the message path by accident.
  • Keep feature indexes aligned with capability reads, event decoding, battery refresh, settings revisions, and persisted cache schema. A cached index must belong to the same feature table.
  • Keep lock-key read state aligned with broadcasts and reconnects. A late answer from an old connection must not overwrite current state.
  • Keep feature endpoint addressing and event filtering aligned. A feature must receive only its own device reports, and a late reply must not become an external state change.
  • Keep capability decisions separate from device kind. New kind values must pass through the correct vocabulary conversion.
  • Keep pairing ownership and post-pair inventory refresh aligned with receiver phase locks and cancellation.
  • Keep session arming, report decoding, reconnect re-arm, pending restore, and successor-session ordering aligned for gesture, thumb-wheel, and host-switch paths.
  • Keep write-layer unit-ID reads centralized through write::unit_id so missing-feature behavior and timeout classification stay consistent across writes and restores. Keep the host-switch identity check aligned with its device-changing write.
  • Keep host-switch preparation identity checks before the fire-and-forget host change. A route replacement must not receive a prepared write.
  • Keep haptic restore proofs and RGB control leases tied to both the recorded device identity and the state that OpenLogi changed.
  • Keep protocol feature registry entries, typed wrappers, device-layer capability mapping, and event indexes aligned when adding a feature or device name source.
  • Keep correlation-key ownership aligned across request registration, cancellation, failed writes, stale replies, and response resolution.
  • Keep replay topology, cassette requests, report support, identity sanitization, and completion checks aligned for each new integration case.

Important failure modes

TriggerConsequenceGuard
A product kind is used as a capability sourceThe application can show an unsupported control or hide a supported oneUse live or last-good feature capabilities
Two processes read HID++ 1.0 receiver registers at the same timeOne probe can consume another probe's reply and report false slot lossHold the host-wide receiver register phase
A receiver phase cannot be acquired but the caller proceedsReplies become ambiguous and a good channel can be retiredDefer the probe until the bounded lock attempt succeeds
A direct receiver interface is accepted as a direct deviceThe receiver can appear as a phantom device and receive the wrong writesRequire a completed direct feature probe with battery or device controls
A partial receiver probe is published as authoritativePaired devices can disappear during a temporary failureRetain the last complete inventory and retry
A failed channel is reopened while an old user still holds itTwo live channels can split report delivery for one host nodeRetire, drain, and reopen one node through one channel lifecycle
A stale route remains published after channel replacementA session or write can address retired hardwareRemove the old publication before installing the replacement
An input buffer is narrower than a supported reportA raw vendor report reaches listeners truncated and cannot be decodedSize input reads for the widest incoming report and test the full frame
A large raw output is treated like an input report or sent without boundsValid vendor output can be truncated, or invalid input can reach host I/OKeep separate input and output limits and reject invalid lengths before I/O
Raw vendor traffic enters HID++ message parsingA foreign report can become a false protocol messageDeliver complete raw reports first, then reject non-HID++ report IDs
A raw listener remains active after its owner endsLater device traffic reaches stale session codeRemove listeners by handle or use the guarded listener lifetime
A lock-key answer arrives after a reconnectOld state can overwrite current keyboard stateStamp reads with their connection and discard old answers
A late reply reuses a correlation key held by a newer requestThe newer request can receive the old answerKeep the key stale until its owed replies are discarded or expire
A setting broadcast is treated as inventory stateClients can show a stale settingBump the settings revision and make the client re-read it
A feature exists but its capability read is unknownThe application can expose a control firmware cannot useKeep the last complete capability result and request repair
A session finishes before firmware state is restoredCaptured controls can remain divertedRetain restore ownership until the current route completes it
A route is reused by another device before a host switch or restoreA fire-and-forget switch or cleanup write can affect the replacementCheck the unit ID before a host switch and through the write-layer helper before restore
Haptic restoration ignores a changed configurationA later writer's state can be overwrittenRestore only when the same device still reports the armed state
RGB control is released without checking the lease identityA replacement device can lose its own lighting ownershipBind the lease to the reported unit ID and leave another device alone
A replay accepts an unmatched request or ignores a required exchangeTests can pass without checking the production wire contractUse strict cassette matching and completion checks
A recording keeps native identities or uncertain trafficFixtures can leak device data or replay unproven behaviorSanitize identities and reject incomplete evidence

Key files

FileWhy to read it
crates/…/lib.rsDefines the host-free device-domain boundary and public integration surface.
crates/…/backend.rsDefines backend errors, node identity, hotplug hints, raw output access, and the host-independent backend seam.
crates/…/channel.rsDefines routes and shared device channels.
crates/…/registry.rsDefines route publication and replacement visibility.
crates/…/host_lock.rsDefines host-wide arbitration for receiver register phases.
crates/…/inventory.rsCoordinates enumeration, cache use, channel reuse, retry, and publication.
crates/…/channel_cache.rsDefines one node's channel serving, retirement, and replacement lifecycle.
crates/…/probe.rsDefines probe verdicts and the receiver/direct probe boundary.
crates/…/direct.rsShows direct-device recognition and receiver-interface filtering.
crates/…/features.rsMaps feature answers to identity, battery state, and capabilities.
crates/…/events.rsConnects device broadcasts to reconciliation, setting revisions, and UI signals.
crates/…/lock_keys.rsDefines lock-key state across reads, broadcasts, and reconnects.
crates/…/write.rsConnects routes and shared channels to device controls.
crates/…/unit_id.rsProvides the shared device-identity read for writes and restoration.
crates/…/haptic.rsDefines haptic capability use and identity-safe temporary arming.
crates/…/rgb.rsDefines temporary RGB control ownership and release.
crates/…/capture_restore.rsDefines route-aware restoration for diverted controls.
crates/…/arm.rsDefines capability-aware gesture capture.
crates/…/host_switch.rsDefines keyboard host-switch sessions and linked-device movement.
crates/…/thumbwheel.rsDefines the compatible thumb-wheel capture path.
crates/…/host.rsSupplies the native HID backend to device-domain entry points.
crates/…/recording.rsConnects native traffic recording to replay evidence.
crates/…/tests.rsShows recording and fixture safety checks.
crates/…/raw.rsDefines the raw HID channel and descriptor-based HID++ support check.
crates/…/channel.rsDefines HID++ request handling, raw report delivery, and incoming report resolution.
crates/…/pending.rsDefines correlation-key ownership and stale-reply handling.
crates/…/raw_and_listeners.rsVerifies raw report size, foreign-report delivery, and listener lifetime contracts.
crates/…/feature.rsDefines feature endpoints and shared event handling.
crates/…/device_friendly_name.rsDefines a device-provided name source.
crates/…/device_type_and_name.rsDefines device type and model-name protocol data.
crates/…/replay.rsDefines strict virtual transport and replay errors.
crates/…/replay_tests.rsDemonstrates inventory recovery, event-driven reconciliation, and channel replacement.
crates/…/session_replay_tests.rsDemonstrates session capture, restoration, and device operations against replayed hardware.