Skip to main content

WorkflowClock

Trait WorkflowClock 

Source
pub trait WorkflowClock: Send + Sync {
    // Required method
    fn now_ms(&self) -> u64;
}
Expand description

Store-authoritative time source used by the in-memory reference adapter.

Required Methods§

Source

fn now_ms(&self) -> u64

Returns Unix time in milliseconds.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§