made-core 0.3.0

Domain core of MADE: entities, value objects, events, ports. No IO.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! [`ClockPort`] — source of wall-clock time.
//!
//! The domain never calls `OffsetDateTime::now_utc` directly so that
//! deliberations stay reproducible under test and deterministic
//! clocks can be injected (frozen clocks for replay, accelerated
//! clocks for load tests, etc.).

use time::OffsetDateTime;

pub trait ClockPort: Send + Sync {
    fn now(&self) -> OffsetDateTime;
}