Expand description
§lmu-shared-memory
Safe Rust interface for reading telemetry and standings from Le Mans Ultimate shared memory.
§Platform support
This crate currently supports Windows only.
§Telemetry
use lmu_shared_memory::{LmuTelemetry, TelemetryUpdate};
let mut telemetry = LmuTelemetry::connect()?;
if let TelemetryUpdate::Snapshot(snapshot) = telemetry.read()? {
println!("Throttle: {}", snapshot.pedals.throttle);
}§Standings
use lmu_shared_memory::{LmuStandings, StandingsUpdate};
let mut standings = LmuStandings::connect()?;
if let StandingsUpdate::Snapshot(snapshot) = standings.read()? {
for entry in snapshot.entries {
println!(
"{}: {}",
entry.position,
entry.driver_name
);
}
}Structs§
- LmuStandings
- LmuTelemetry
- Pedal
Data - Shared
Memory - Shared
Memory Guard - Shared
Memory Lock - Standing
Entry - Standings
Snapshot - Telemetry
Snapshot - Tire
Compound - Vehicle
Key