Enum paxos_rust::message::Message[][src]

pub enum Message<T> {
    Prepare(ProposalData),
    Promise(PromiseData<T>),
    Accept(AcceptData<T>),
    Accepted(AcceptedData<T>),
    Nack,
}

A message sent between nodes

Variants

Trait Implementations

impl<T: Debug> Debug for Message<T>
[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq> PartialEq for Message<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq> Eq for Message<T>
[src]

impl<T: Hash> Hash for Message<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: Clone> Clone for Message<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T> Send for Message<T> where
    T: Send + Sync

impl<T> Sync for Message<T> where
    T: Send + Sync