simetry 0.2.3

Interface with telemetry of various racing and driving sims
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use simetry::iracing::DiskClient;
use std::env;
use std::thread::sleep;
use std::time::Duration;

fn main() {
    let mut client =
        DiskClient::open(env::args().nth(1).expect("Filename argument required")).unwrap();
    for (key, val) in client.variables() {
        println!("{}: {:?}", key, val);
    }
    println!("Session info: {:?}", client.session_info());
    sleep(Duration::from_millis(500));
    while let Some(_sim_state) = client.next_sim_state() {
        println!("Received new data");
        sleep(Duration::from_millis(16));
    }
}