Struct chronofold::Timestamp [−][src]
pub struct Timestamp<A>(pub LogIndex, pub A);
Expand description
An ordered pair of the author’s index and the author.
The lexicographic order of timestamps forms an arbitrary total order, that is consistent with cause-effect ordering. That is, if a timestamp is greater than another, its associated event either happened after the other or was concurrent.
Tuple Fields
0: LogIndex
1: A
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<A> RefUnwindSafe for Timestamp<A> where
A: RefUnwindSafe,
impl<A> UnwindSafe for Timestamp<A> where
A: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more