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
Prepare(ProposalData)
Promise(PromiseData<T>)
Accept(AcceptData<T>)
Accepted(AcceptedData<T>)
Nack
Trait Implementations
impl<T: Debug> Debug for Message<T>
[src]
impl<T: Debug> Debug for Message<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for Message<T>
[src]
impl<T: PartialEq> PartialEq for Message<T>
fn eq(&self, other: &Message<T>) -> bool
[src]
fn eq(&self, other: &Message<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Message<T>) -> bool
[src]
fn ne(&self, other: &Message<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for Message<T>
[src]
impl<T: Eq> Eq for Message<T>
impl<T: Hash> Hash for Message<T>
[src]
impl<T: Hash> Hash for Message<T>
fn hash<__HT: Hasher>(&self, state: &mut __HT)
[src]
fn hash<__HT: Hasher>(&self, state: &mut __HT)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: Clone> Clone for Message<T>
[src]
impl<T: Clone> Clone for Message<T>