Struct paxos_rust::acceptor::Acceptor[][src]

pub struct Acceptor<T> {
    pub id: u64,
    pub proposal_n: u64,
    pub value: Option<Arc<T>>,
    pub messenger: Option<Box<Messenger<T>>>,
}

The Acceptors act as the fault-tolerant "memory" of the protocol. Acceptors are collected into groups called Quorums. Any message sent to an Acceptor must be sent to a Quorum of Acceptors. Any message received from an Acceptor is ignored unless a copy is received from each Acceptor in a Quorum.

Fields

Acceptor's ID

The highest proposal number promised

The currently promised value

Messenger specifying communication with other nodes

Methods

impl<T> Acceptor<T>
[src]

Creates a new Acceptor.

Receives a Prepare message from a Proposer.

Receives an Accept message from a Proposer.

Auto Trait Implementations

impl<T> !Send for Acceptor<T>

impl<T> !Sync for Acceptor<T>