Skip to main content

Module device

Module device 

Source
Expand description

Device-model traits implemented by capability crates.

These traits describe the roles a piece of hardware can play in an application: a connectable Device, a Sensor that produces readings, an Actuator that accepts commands, and a Telemetry source that streams frames. A single type may implement more than one of them.

Traitsยง

Actuator
A sink that accepts typed commands, such as a motor or a valve.
Device
A connectable physical or virtual device.
Sensor
A source of typed readings, such as a thermometer, GPS receiver, or lidar.
Telemetry
A device that emits a continuous stream of telemetry frames.