[][src]Struct crdts::vclock::Dot

pub struct Dot<A> {
    pub actor: A,
    pub counter: u64,
}

Dot is a version marker for a single actor

Fields

actor: A

The actor identifier

counter: u64

The current version of this actor

Methods

impl<A: Actor> Dot<A>[src]

pub fn new(actor: A, counter: u64) -> Self[src]

Build a Dot from an actor and counter

Trait Implementations

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

impl<A: Actor> From<Dot<A>> for VClock<A>[src]

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

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

impl<A: Actor> FromIterator<Dot<A>> for VClock<A>[src]

impl<A> Serialize for Dot<A> where
    A: Serialize
[src]

impl<'de, A> Deserialize<'de> for Dot<A> where
    A: Deserialize<'de>, 
[src]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T> Val for T where
    T: PartialEq<T> + Clone + Debug
[src]

impl<T> Val for T where
    T: Clone + Debug
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]