rule — functions and constants
Alarm rules: one signal, one condition, and what to do about it.
A measuring area's over-temperature alarm, an alarm on a process
interface input and an alarm on a value your own application
publishes are three values of the same shape. Build a Rule, set
its input and condition, add actions, then hand it to
crate::Camera::add_rule, which copies it.
Rules are evaluated once per frame on the frame thread. Actions run on a separate thread, so a slow action never holds up the camera.
pub const NO_MIN_INTERVAL_MS: u32 = sys::OPTRIS_SDK_SNAPSHOT_NO_MIN_INTERVAL;
OPTRIS_SDK_SNAPSHOT_NO_MIN_INTERVAL: a snapshot action's
min_interval_ms meaning no rate limit at all.
The field has three states on the ABI: 0 is the SDK default of one
second, this is none, and anything else is the interval itself. See
sdk_c.h for why "none" is not 0 there when it is in C++ and in
RuleActionKind::Snapshot::min_interval.