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§

source

fn now(&self) -> T

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl GenericNowFn<Timestamp> for NowFn<EpochMillis>

source§

fn now(&self) -> Timestamp

source§

impl<T: Clone + Send + Sync> GenericNowFn<T> for NowFn<T>

source§

fn now(&self) -> T

Implementors§