pub struct EntryVersion {
pub logical_time_ms: u128,
pub counter: u32,
pub actor: Did,
pub operation: Did,
}Expand description
Hybrid logical version for LWW entry registers and element dots: the HLC pair
(logical_time_ms, counter) followed by the issuer, ordered lexicographically in field order.
logical_time_ms starts from the wall-clock millisecond observed at the storage-operation
boundary; a version issued after a floor that dominates it keeps the floor’s millisecond and
raises counter instead (EntryVersion::after), so strict ascent never moves the millisecond
ahead of the clock (#1075). actor and operation make concurrent writes of different
issuers at one (logical_time_ms, counter) totally ordered without claiming recency.
Fields§
§logical_time_ms: u128Hybrid logical time in milliseconds.
counter: u32Logical counter within logical_time_ms: raised, instead of the millisecond, when a
version is issued after a floor at the same or a later millisecond.
actor: DidStorage node that first stamped the operation.
operation: DidDeterministic digest of the stamped operation payload.
Implementations§
Source§impl EntryVersion
impl EntryVersion
Trait Implementations§
Source§impl Clone for EntryVersion
impl Clone for EntryVersion
Source§fn clone(&self) -> EntryVersion
fn clone(&self) -> EntryVersion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for EntryVersion
Source§impl Debug for EntryVersion
impl Debug for EntryVersion
Source§impl Default for EntryVersion
impl Default for EntryVersion
Source§fn default() -> EntryVersion
fn default() -> EntryVersion
Source§impl<'de> Deserialize<'de> for EntryVersion
impl<'de> Deserialize<'de> for EntryVersion
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EntryVersion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EntryVersion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for EntryVersion
Source§impl Hash for EntryVersion
impl Hash for EntryVersion
Source§impl Ord for EntryVersion
impl Ord for EntryVersion
Source§fn cmp(&self, other: &EntryVersion) -> Ordering
fn cmp(&self, other: &EntryVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for EntryVersion
impl PartialEq for EntryVersion
Source§impl PartialOrd for EntryVersion
impl PartialOrd for EntryVersion
Source§impl Serialize for EntryVersion
impl Serialize for EntryVersion
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for EntryVersion
Auto Trait Implementations§
impl Forget for EntryVersion
impl Freeze for EntryVersion
impl Move for EntryVersion
impl RefUnwindSafe for EntryVersion
impl Send for EntryVersion
impl Sync for EntryVersion
impl Unpin for EntryVersion
impl UnsafeUnpin for EntryVersion
impl UnwindSafe for EntryVersion
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T> MaybeSend for T
impl<T> MaybeSendSync for T
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.