RMonitor for Rust
A simple, Tokio-compatible protocol decoder for RMonitor, a line based timing protocol supported by different vendors of sport timing software.
The decoder supports both:
- The original RMonitor Timing Protocol
- The IMSA Enhanced protocol, which adds two extended record types.
Example
You'll need rmonitor, tokio and tokio-util in your dependencies:
= "0.2"
= { = "0.3", = ["codec"] }
= { = "0.2", = ["full"] }
Then create your main.rs:
use RMonitorDecoder;
use Error;
use TcpStream;
use StreamExt;
use FramedRead;
async
A synchronous example is also available to show use of the decoder without pulling in a Tokio runtime.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.