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
//! AimDB Client Library
//!
//! This library provides a client implementation for the AimX v1 remote access protocol,
//! enabling connections to running AimDB instances via Unix domain sockets.
//!
//! ## Overview
//!
//! The client library offers:
//! - **Connection Management**: Async client for Unix domain socket communication
//! - **Protocol Implementation**: AimX v1 handshake and message handling
//! - **Instance Discovery**: Automatic detection of running AimDB instances
//! - **Record Operations**: List, get, set, subscribe to records
//!
//! ## Usage
//!
//! ```no_run
//! use aimdb_client::AimxClient;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Connect to an AimDB instance
//! let mut client = AimxClient::connect("/tmp/aimdb.sock").await?;
//!
//! // List all records
//! let records = client.list_records().await?;
//! println!("Found {} records", records.len());
//!
//! // Get a specific record
//! let value = client.get_record("server::Temperature").await?;
//! println!("Temperature: {:?}", value);
//!
//! Ok(())
//! }
//! ```
// Re-export main types for convenience
pub use ;
pub use ;
pub use ;
pub use ;