Simple Rust NTP client
This crate provides a method for sending requests to NTP servers and process responses, extracting received timestamp
Documentation
Installation
This crate works with Cargo and is on
crates.io. Add it to your Cargo.toml
like so:
[]
= "0.1"
By calling the request() method and providing a proper NTP pool or server you
should get a valid synchronization timestamp:
use sntpc;
let result = request;
if let Ok = result