Trait mz_timestamp_oracle::GenericNowFn
source · pub trait GenericNowFn<T>:
Clone
+ Send
+ Sync {
// Required method
fn now(&self) -> T;
}
Expand description
A NowFn
that is generic over the timestamp.
The oracle operations work in terms of mz_repr::Timestamp
and we could
work around it by bridging between the two in the oracle implementation
itself. This wrapper type makes that slightly easier, though.
Required Methods§
Object Safety§
This trait is not object safe.