waterkit-core 0.1.3

Shared primitives for waterkit (reactive Subscribed, units, identifiers, time)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Standard time types used across the waterkit workspace.
//!
//! Every time-bearing API in waterkit uses one of these. Strings, `u64`
//! milliseconds, `u64` nanoseconds — none of those are acceptable in public
//! signatures. Use:
//!
//! - [`Timestamp`] for absolute instants. Use [`Zoned`] when a wall-clock
//!   time with timezone is needed.
//! - [`Duration`] for elapsed time / delta values. Use [`Span`] for
//!   calendar-aware differences (months, years).

#[doc(no_inline)]
pub use core::time::Duration;
#[doc(no_inline)]
pub use jiff::{Span, Timestamp, Zoned};