Skip to main content

Crate adamo

Crate adamo 

Source
Expand description

Rust SDK for the Adamo Network.

This crate is a safe, idiomatic wrapper over the precompiled Adamo shared library (shipped via [adamo-sys]).

use adamo::Session;

let session = Session::open_default("my-api-key")?;
session.put("telemetry/heartbeat", b"hello", Default::default())?;

Re-exports§

pub use control::ControlMessage;
pub use control::JointState;
pub use control::Joy;
pub use control::JoystickCommand;
pub use control::decode_control;
pub use stats::LatencyStats;
pub use stats::Regime;
pub use stats::heartbeat_topic;
pub use stats::ping_topic;
pub use stats::pong_topic;

Modules§

control
stats
Latency / network-stats helpers.

Structs§

CallbackSubscriber
A callback-based subscriber. Tied to its parent Session by lifetime.
LivelinessSubscriber
A liveliness watcher. Tied to its parent Session by lifetime.
LivelinessToken
A liveliness token. Drop it to undeclare the token.
Priority
Priority constants shared with the Python SDK.
PublishOptions
Options for a one-shot put.
Publisher
A declared publisher. Tied to its parent Session by lifetime.
PublisherOptions
Options for a persistent publisher.
Sample
An owned, decoded sample.
Session
An authenticated Adamo session.
StateStore
A robot-owned retained key/value store. Tied to its parent Session by lifetime. Read values back with Session::get on {robot}/state/{key}.
StreamError
Subscriber
A pull-based subscriber.
TaskRunner
A robot-owned, looping task run with an idle gap between reps. Tied to its parent Session by lifetime. Wire the pedal to advance; read the run from {robot}/state/task_run.

Enums§

Error
Protocol
Transport protocol used to reach the Adamo router.

Functions§

fabric_now_us
Microseconds since the Unix epoch on the adamo fabric clock — the shared time axis every robot, browser, and relay on this network sees.
fabric_synced
true once the client has completed at least one ping/pong with the timehub plugin and fabric_now_us is reading from the synced clock rather than the local wall-clock fallback.

Type Aliases§

Result