Struct paxakos::leases::master::voter::LeaseGrantingVoter [−][src]
Implementations
impl<S, R, C, N> LeaseGrantingVoter<S, IndiscriminateVoter<S, R, C, Infallible, (), N>> where
S: State,
R: RoundNum,
C: CoordNum,
N: Debug + Send + Sync + 'static,
impl<S, R, C, N> LeaseGrantingVoter<S, IndiscriminateVoter<S, R, C, Infallible, (), N>> where
S: State,
R: RoundNum,
C: CoordNum,
N: Debug + Send + Sync + 'static,
Trait Implementations
impl<S, R, C, N> Default for LeaseGrantingVoter<S, IndiscriminateVoter<S, R, C, Infallible, (), N>> where
S: State,
R: RoundNum,
C: CoordNum,
N: Debug + Send + Sync + 'static,
impl<S, R, C, N> Default for LeaseGrantingVoter<S, IndiscriminateVoter<S, R, C, Infallible, (), N>> where
S: State,
R: RoundNum,
C: CoordNum,
N: Debug + Send + Sync + 'static,
impl<S, V> Voter for LeaseGrantingVoter<S, V> where
S: State,
V: Voter<State = S, Yea = (), Abstain = Infallible>,
impl<S, V> Voter for LeaseGrantingVoter<S, V> where
S: State,
V: Voter<State = S, Yea = (), Abstain = Infallible>,
type State = S
type State = S
Type of shared state.
type RoundNum = RoundNumOf<V>
type RoundNum = RoundNumOf<V>
Round number type.
type CoordNum = CoordNumOf<V>
type CoordNum = CoordNumOf<V>
Coordination number type.
Contemplate a bid for leadership. Read more
fn contemplate_proposal(
&mut self,
round_num: Self::RoundNum,
coord_num: Self::CoordNum,
log_entry: &LogEntryOf<Self::State>,
leader: Option<&NodeOf<Self::State>>,
state: Option<&Self::State>
) -> Decision<Self::Yea, Self::Nay, Infallible>
fn contemplate_proposal(
&mut self,
round_num: Self::RoundNum,
coord_num: Self::CoordNum,
log_entry: &LogEntryOf<Self::State>,
leader: Option<&NodeOf<Self::State>>,
state: Option<&Self::State>
) -> Decision<Self::Yea, Self::Nay, Infallible>
Contemplate a proposed log entry. Read more
fn observe_commit(
&mut self,
round_num: Self::RoundNum,
coord_num: Self::CoordNum,
log_entry: &LogEntryOf<Self::State>,
leader: Option<&NodeOf<Self::State>>
)
fn observe_commit(
&mut self,
round_num: Self::RoundNum,
coord_num: Self::CoordNum,
log_entry: &LogEntryOf<Self::State>,
leader: Option<&NodeOf<Self::State>>
)
Called for every commit. Read more
Auto Trait Implementations
impl<S, V> !RefUnwindSafe for LeaseGrantingVoter<S, V>
impl<S, V> Send for LeaseGrantingVoter<S, V>
impl<S, V> Sync for LeaseGrantingVoter<S, V> where
V: Sync,
impl<S, V> Unpin for LeaseGrantingVoter<S, V> where
V: Unpin,
impl<S, V> !UnwindSafe for LeaseGrantingVoter<S, V>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more