pub trait TimestampSource: Send + Sync {
// Required method
fn now_timestamp_seconds(&self) -> i64;
}Expand description
Supplies Unix timestamps for rows written by persistence adapters.
Required Methods§
Sourcefn now_timestamp_seconds(&self) -> i64
fn now_timestamp_seconds(&self) -> i64
Returns the current Unix timestamp in whole seconds.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".