Installation

cargo add medius

With optional features:

cargo add medius --features async,mock
FeatureDescription
asyncRuntime-agnostic AsyncDevice, async queries.
mockIn-process fake box for tests.
tracingTracing across the connection lifecycle.

Getting started

Connection

Open, find, handshake

Discovery

List boxes, open by identity

API

Inject

press, release, force_release

Move

move_axis, move_rel, wheel, riding override

Lock

scale, lock, unlock, scale_all

Catch

Stream input and raw traffic

Transform

transform, untransform, query_transforms

Clip

Preload input, box-clocked playback

Requests

version, health, device info

LED

Status LED

Admin

reset, reboot

Update

update_firmware, stage_firmware, activate_firmware

Options

imperfect clones, riding, bearing, emit pace, name

Lifecycle

reapply, reconnect, session recovery

Logs & counters

Read logs, snapshot counters

Advanced control

Raw injection

raw

Control transfers

transfer, transfer_timeout

Rewrite rules

set_rewrite, remove_rewrite, clear_rewrite

Descriptor patches

set_patch, apply_patch, clear_patch

Features

async

AsyncDevice

mock

In-process fake box

tracing

Structured diagnostics

GuidesBehaviour and how-to

Calls & input

Call kinds, async, motion, clicks

Connection

Ports, threads, keepalive

Testing

MockBox in tests

Reference

Types & errors

Enums, Result, Error