1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! AimDB Client Library
//!
//! This library provides a client implementation for the AimX remote access
//! protocol, enabling connections to running AimDB instances via Unix domain
//! sockets or serial.
//!
//! ## Overview
//!
//! The client library offers:
//! - **Connection Management**: [`AimxConnection`] over the shared session engine
//! - **Protocol Implementation**: the reshaped AimX handshake + RPC/streaming
//! - **Instance Discovery**: Automatic detection of running AimDB instances
//! - **Record Operations**: list, get, set, subscribe, drain, graph, query
//!
//! ## Usage
//!
//! ```no_run
//! use aimdb_client::AimxConnection;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Connect to an AimDB instance by endpoint (a bare path is the `unix://`
//! // shorthand; `serial://DEVICE?baud=N` reaches a board). Performs `hello`.
//! let conn = AimxConnection::connect("unix:///tmp/aimdb.sock").await?;
//!
//! // List all records
//! let records = conn.list_records().await?;
//! println!("Found {} records", records.len());
//!
//! // Get a specific record
//! let value = conn.get_record("server::Temperature").await?;
//! println!("Temperature: {:?}", value);
//!
//! Ok(())
//! }
//! ```
// Instance discovery is a Unix-socket filesystem scan, so it rides the UDS
// transport feature.
// Re-export main types for convenience. `AimxConnection` is the engine-based
// client (the synchronous `AimxClient` was retired with the AimX server port).
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;