Skip to main content

LamportClock

Type Alias LamportClock 

Source
pub type LamportClock = HybridClock;

Aliased Type§

pub struct LamportClock {
    pub id: String,
    pub physical_ms: u64,
    pub logical: u32,
}

Fields§

§id: String

Unique identifier of the instance that owns this clock

§physical_ms: u64

Physical time in milliseconds since Unix epoch

§logical: u32

Logical counter — incremented when physical time doesn’t advance