pub trait AsEpochMillis {
// Required method
fn as_epoch_millis(&self) -> EpochMillis;
}Expand description
A timestamp that denotes a point in wall-clock time.
Implement this only for types whose values are milliseconds since the Unix
epoch, so that they compare meaningfully against a NowFn.
Required Methods§
Sourcefn as_epoch_millis(&self) -> EpochMillis
fn as_epoch_millis(&self) -> EpochMillis
The timestamp as milliseconds since the Unix epoch.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".