sendmock-core 1.2.0

Shared types for SendMock: events, value objects, errors, clock and id traits.
Documentation
1
2
3
4
5
6
7
8
9
10
mod fixed_clock;
mod system_clock;

pub use fixed_clock::FixedClock;
pub use system_clock::SystemClock;

/// The current time as UTC milliseconds since the Unix epoch, the unit every stored timestamp uses.
pub trait Clock: Send + Sync {
    fn now_unix_ms(&self) -> i64;
}