Struct paxos_rust::message::PromiseData[][src]

pub struct PromiseData<T> {
    pub id: u64,
    pub value: Option<Arc<T>>,
    pub from: u64,
}

Promise data (Acceptor -> Proposer)

Fields

Trait Implementations

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

Formats the value using the given formatter. Read more

impl<T: PartialEq> PartialEq for PromiseData<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 PromiseData<T>
[src]

impl<T: Hash> Hash for PromiseData<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 PromiseData<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

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

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