Skip to main content

Crate rusty_time_clock

Crate rusty_time_clock 

Source
Expand description

rusty_time-clock — the platform seam.

Three capabilities, each a trait so the daemon, the tests, and the TIMECORP simulator plug the same discipline loop into different worlds:

This is the only crate in the workspace where unsafe is permitted; every block names its invariant.

Modules§

net
Socket readiness — the poll-before-recv seam.
refclock
Reference-clock transports: gpsd shared memory, chrony’s SOCK protocol, and PTP hardware clocks. Reference-clock transports: gpsd’s shared memory, chrony’s SOCK protocol, and PTP hardware clocks.
slew
Platform slew arithmetic, testable on every host (see the module docs for why that is not merely tidiness). Platform slew arithmetic, with no platform in it.
stop
SIGTERM and SIGINT, including as a PID namespace’s init process. Stopping on SIGTERM and SIGINT, including as the init process of a PID namespace.

Structs§

ClockCapabilities
What this machine can actually do, probed without perturbing the clock.
ClockError
SystemClock
VirtualDriver

Traits§

ClockDrive
Drive the platform clock.
ClockRead
Read the platform clocks.

Functions§

capabilities
Probe this machine’s clock capabilities.