#[repr(u32)]pub enum StampKind {
Tsc = 0,
SharedCounter = 1,
Monotonic = 2,
}Expand description
Which clock the stamps come from. Fixed at region creation; openers read it from the header so every process attached to the ring stamps from the same source.
Variants§
Tsc = 0
rdtsc behind the invariant-TSC probe.
fetch_add on the header’s shared_stamp atom.
Monotonic = 2
System-wide monotonic clock in nanoseconds.
Implementations§
Source§impl StampKind
impl StampKind
Sourcepub fn has_time_semantics(self) -> bool
pub fn has_time_semantics(self) -> bool
Whether stamps carry time semantics (enables the freshness
guard in MergeByStamp).
Sourcepub fn freshness_guard(self) -> Option<u64>
pub fn freshness_guard(self) -> Option<u64>
The freshness-guard window for this stamp kind, in the stamp
unit. None for counter stamps (no time semantics; exactness
comes from MergeStrict’s watermark gate instead).
Trait Implementations§
impl Copy for StampKind
impl Eq for StampKind
impl StructuralPartialEq for StampKind
Auto Trait Implementations§
impl Freeze for StampKind
impl RefUnwindSafe for StampKind
impl Send for StampKind
impl Sync for StampKind
impl Unpin for StampKind
impl UnsafeUnpin for StampKind
impl UnwindSafe for StampKind
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