pub struct ClockedProvider<P> { /* private fields */ }Expand description
inner’s answers, with clock as the present moment: for a caller on a
simulated clock, whose messages are dated by it (mako-twin’s sw-sim), so
that UTILMD [494] (“nicht nach der Erstellung des Dokuments”) judges
them by that clock rather than the wall clock.
Implementations§
Source§impl<P: ExternalConditionProvider> ClockedProvider<P>
impl<P: ExternalConditionProvider> ClockedProvider<P>
Trait Implementations§
Source§impl<P: ExternalConditionProvider> ExternalConditionProvider for ClockedProvider<P>
impl<P: ExternalConditionProvider> ExternalConditionProvider for ClockedProvider<P>
Source§fn evaluate(&self, condition_name: &str) -> ConditionResult
fn evaluate(&self, condition_name: &str) -> ConditionResult
Evaluate an external condition by name. Read more
Source§fn now(&self) -> DateTime<Utc>
fn now(&self) -> DateTime<Utc>
The present moment, for conditions that compare against it: UTILMD
[494] “das hier genannte Datum muss der Zeitpunkt sein, zu dem das
Dokument erstellt wurde, oder ein Zeitpunkt, der davor liegt”. The
wall clock by default; a caller on a simulated clock overrides it.Auto Trait Implementations§
impl<P> !RefUnwindSafe for ClockedProvider<P>
impl<P> !UnwindSafe for ClockedProvider<P>
impl<P> Freeze for ClockedProvider<P>where
P: Freeze,
impl<P> Send for ClockedProvider<P>where
P: Send,
impl<P> Sync for ClockedProvider<P>where
P: Sync,
impl<P> Unpin for ClockedProvider<P>where
P: Unpin,
impl<P> UnsafeUnpin for ClockedProvider<P>where
P: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more