[][src]Struct chronofold::Timestamp

pub struct Timestamp<A>(pub LogIndex, pub A);

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.

Trait Implementations

impl<A: Clone> Clone for Timestamp<A>[src]

impl<A: Copy> Copy for Timestamp<A>[src]

impl<A: Debug> Debug for Timestamp<A>[src]

impl<A: Display> Display for Timestamp<A>[src]

impl<A: Eq> Eq for Timestamp<A>[src]

impl<A: Ord> Ord for Timestamp<A>[src]

impl<A: PartialEq> PartialEq<Timestamp<A>> for Timestamp<A>[src]

impl<A: PartialOrd> PartialOrd<Timestamp<A>> for Timestamp<A>[src]

impl<A> StructuralEq for Timestamp<A>[src]

impl<A> StructuralPartialEq for Timestamp<A>[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for Timestamp<A> where
    A: RefUnwindSafe

impl<A> Send for Timestamp<A> where
    A: Send

impl<A> Sync for Timestamp<A> where
    A: Sync

impl<A> Unpin for Timestamp<A> where
    A: Unpin

impl<A> UnwindSafe for Timestamp<A> where
    A: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.