pub struct Stamp {
pub physical: u64,
pub logical: u64,
}Expand description
A causally-ordered stamp for a lock operation.
This mirrors ash_time::HlcTimestamp (a (physical, logical) pair) so the
public shape is identical whether or not the ash-time feature is on.
Fields§
§physical: u64Wall-clock component (nanoseconds since the Unix epoch) when backed by
ash-time; 0 in the fallback counter mode.
logical: u64Logical tie-breaker / fallback monotonic counter.
Trait Implementations§
impl Copy for Stamp
impl Eq for Stamp
Source§impl Ord for Stamp
impl Ord for Stamp
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Stamp
impl PartialOrd for Stamp
impl StructuralPartialEq for Stamp
Auto Trait Implementations§
impl Freeze for Stamp
impl RefUnwindSafe for Stamp
impl Send for Stamp
impl Sync for Stamp
impl Unpin for Stamp
impl UnsafeUnpin for Stamp
impl UnwindSafe for Stamp
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