Expand description
This crate contains packet parsing and algorithm code for ntpd-rs and is not intended as a public interface at this time. It follows the same version as the main ntpd-rs crate, but that version is not intended to give any stability guarantee. Use at your own risk.
Please visit the ntpd-rs project for more information.
Structs
- Frequency tolerance PHI (unit: seconds per second)
- NtpDuration is used to represent signed intervals between NtpTimestamps. A negative duration interval is interpreted to mean that the first timestamp used to define the interval represents a point in time after the second timestamp.
- NtpInstant is a monotonically increasing value modelling the uptime of the NTP service
- NtpTimestamp represents an ntp timestamp without the era number.
- Stores when we will next exchange packages with a remote server.
- Used to determine whether the server is reachable and the data are fresh
Enums
Traits
- Interface for a clock settable by the ntp implementation. This needs to be a trait as a single system can have multiple clocks which need different implementation for steering and/or now.