Struct paxakos::leases::master::communicator::LeaseRecordingCommunicator
source · [−]pub struct LeaseRecordingCommunicator<C: Communicator> { /* private fields */ }
Implementations
sourceimpl<C: Communicator> LeaseRecordingCommunicator<C>
impl<C: Communicator> LeaseRecordingCommunicator<C>
Trait Implementations
sourceimpl<C, Y> Communicator for LeaseRecordingCommunicator<C> where
C: Communicator<Yea = Y>,
Y: ToLeaseDuration + Debug + Send + Sync + 'static,
impl<C, Y> Communicator for LeaseRecordingCommunicator<C> where
C: Communicator<Yea = Y>,
Y: ToLeaseDuration + Debug + Send + Sync + 'static,
type Node = <C as Communicator>::Node
type Node = <C as Communicator>::Node
NodeInfo
type RoundNum = <C as Communicator>::RoundNum
type RoundNum = <C as Communicator>::RoundNum
The round number type.
type CoordNum = <C as Communicator>::CoordNum
type CoordNum = <C as Communicator>::CoordNum
The coordination number type.
type LogEntry = <C as Communicator>::LogEntry
type LogEntry = <C as Communicator>::LogEntry
The log entry type.
type Error = <C as Communicator>::Error
type Error = <C as Communicator>::Error
The communication error type.
type SendPrepare = <C as Communicator>::SendPrepare
type SendPrepare = <C as Communicator>::SendPrepare
Type of future returned from send_prepare
.
type Abstain = <C as Communicator>::Abstain
type Abstain = <C as Communicator>::Abstain
Information sent along with abstentions.
type SendProposal = Pin<Box<dyn Future<Output = Result<Acceptance<<LeaseRecordingCommunicator<C> as Communicator>::CoordNum, <LeaseRecordingCommunicator<C> as Communicator>::LogEntry, <LeaseRecordingCommunicator<C> as Communicator>::Yea, <LeaseRecordingCommunicator<C> as Communicator>::Nay>, <LeaseRecordingCommunicator<C> as Communicator>::Error>> + 'static, Global>>
type SendProposal = Pin<Box<dyn Future<Output = Result<Acceptance<<LeaseRecordingCommunicator<C> as Communicator>::CoordNum, <LeaseRecordingCommunicator<C> as Communicator>::LogEntry, <LeaseRecordingCommunicator<C> as Communicator>::Yea, <LeaseRecordingCommunicator<C> as Communicator>::Nay>, <LeaseRecordingCommunicator<C> as Communicator>::Error>> + 'static, Global>>
Type of future returned from send_proposal
.
type Yea = <C as Communicator>::Yea
type Yea = <C as Communicator>::Yea
Information sent along with yea votes.
type Nay = <C as Communicator>::Nay
type Nay = <C as Communicator>::Nay
Information sent along with nay votes.
type SendCommit = <C as Communicator>::SendCommit
type SendCommit = <C as Communicator>::SendCommit
Type of future returned from send_commit
.
type SendCommitById = <C as Communicator>::SendCommitById
type SendCommitById = <C as Communicator>::SendCommitById
Type of future returned from send_commit_by_id
.
sourcefn send_prepare<'a>(
&mut self,
receivers: &'a [Self::Node],
round_num: Self::RoundNum,
coord_num: Self::CoordNum
) -> Vec<(&'a Self::Node, Self::SendPrepare)>
fn send_prepare<'a>(
&mut self,
receivers: &'a [Self::Node],
round_num: Self::RoundNum,
coord_num: Self::CoordNum
) -> Vec<(&'a Self::Node, Self::SendPrepare)>
Send a prepare message to all receivers
. Read more
sourcefn send_proposal<'a>(
&mut self,
receivers: &'a [Self::Node],
round_num: Self::RoundNum,
coord_num: Self::CoordNum,
log_entry: Arc<Self::LogEntry>
) -> Vec<(&'a Self::Node, Self::SendProposal)>
fn send_proposal<'a>(
&mut self,
receivers: &'a [Self::Node],
round_num: Self::RoundNum,
coord_num: Self::CoordNum,
log_entry: Arc<Self::LogEntry>
) -> Vec<(&'a Self::Node, Self::SendProposal)>
Send a proposal message to all receivers
. Read more
Auto Trait Implementations
impl<C> !RefUnwindSafe for LeaseRecordingCommunicator<C>
impl<C> Send for LeaseRecordingCommunicator<C> where
C: Send,
impl<C> Sync for LeaseRecordingCommunicator<C> where
C: Sync,
impl<C> Unpin for LeaseRecordingCommunicator<C> where
C: Unpin,
impl<C> !UnwindSafe for LeaseRecordingCommunicator<C>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more