odx-core 0.0.1

Domain types, exit codes and IO traits shared by the odx crates
1
2
3
4
5
6
7
8
9
10
use std::time::SystemTime;

/// Source of the current time.
///
/// Used for cache staleness, verdict expiry and lockfile timestamps, so
/// tests can control time.
pub trait Clock: Send + Sync {
    /// The current wall-clock time.
    fn now(&self) -> SystemTime;
}