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
55
56
57
58
59
60
61
62
63
//! # ACC Shared Memory (Rust)
//!
//! A Rust library for reading Assetto Corsa Competizione (ACC) shared memory telemetry data.
//! This is a port of the Python acc_shared_memory library.
//!
//! ## Features
//!
//! - Read real-time telemetry data from ACC
//! - Type-safe enums for all ACC status codes
//! - Structured data types for physics, graphics, and static information
//! - Cross-platform shared memory access (Windows)
//!
//! ## Usage
//!
//! ```no_run
//! use acc_shared_memory_rs::{ACCSharedMemory, ACCError};
//!
//! fn main() -> Result<(), ACCError> {
//! let mut acc = ACCSharedMemory::new()?;
//!
//! loop {
//! if let Some(data) = acc.read_shared_memory()? {
//! println!("Speed: {:.1} km/h, RPM: {}",
//! data.physics.speed_kmh,
//! data.physics.rpm);
//! }
//! std::thread::sleep(std::time::Duration::from_millis(16));
//! }
//! }
//! ```
pub use ACCSharedMemory;
pub use ACCMap;
/// Error types for ACC shared memory operations
pub type Result<T> = Result;