pub struct Acceptor<T> {
pub id: u64,
pub proposal_n: u64,
pub value: Option<Arc<T>>,
pub messenger: Option<Box<dyn Messenger<T>>>,
}
Expand description
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§
§id: u64
Acceptor
’s ID
proposal_n: u64
The highest proposal number promised
value: Option<Arc<T>>
The currently promised value
messenger: Option<Box<dyn Messenger<T>>>
Messenger
specifying communication with other nodes
Implementations§
Auto Trait Implementations§
impl<T> Freeze for Acceptor<T>
impl<T> !RefUnwindSafe for Acceptor<T>
impl<T> !Send for Acceptor<T>
impl<T> !Sync for Acceptor<T>
impl<T> Unpin for Acceptor<T>
impl<T> !UnwindSafe for Acceptor<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more