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:
ClockRead— wall + monotonic time.ClockDrive— executeClockCommands (slew / step).VirtualDriver— the no-privilege fallback: applies commands to arusty_time_core::VirtualClockview instead of the OS clock.
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§
- Clock
Capabilities - What this machine can actually do, probed without perturbing the clock.
- Clock
Error - System
Clock - Virtual
Driver
Traits§
- Clock
Drive - Drive the platform clock.
- Clock
Read - Read the platform clocks.
Functions§
- capabilities
- Probe this machine’s clock capabilities.