pub enum ClockKind {
Real,
Virtual,
}Expand description
How a node reads time.
Variants§
Real
Milliseconds since the node started; an idle node sleeps until the next deadline.
Virtual
Time moves only when every process is waiting: the node jumps to the next deadline. Deterministic, and the only clock a host with no clock (wasm) can offer.
Implementations§
Trait Implementations§
impl Copy for ClockKind
impl Eq for ClockKind
impl StructuralPartialEq for ClockKind
Auto Trait Implementations§
impl Freeze for ClockKind
impl RefUnwindSafe for ClockKind
impl Send for ClockKind
impl Sync for ClockKind
impl Unpin for ClockKind
impl UnsafeUnpin for ClockKind
impl UnwindSafe for ClockKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.