smos-application 0.1.8

SMOS application layer — use cases and port traits.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! `Clock` port — injectable wall-clock for deterministic time in tests.
//!
//! Production code uses `SystemClock` from `smos`; tests inject a
//! fake to advance time deterministically. `now` is intentionally synchronous
//! — fetching UTC time is a pure read with no async IO.

use smos_domain::Timestamp;

/// Wall-clock boundary.
pub trait Clock {
    /// Return the current UTC instant.
    fn now(&self) -> Timestamp;
}