Implementations
sourceimpl<S, V> GeneralLeaseGrantingVoter<S, V>where
S: State,
V: Voter,
impl<S, V> GeneralLeaseGrantingVoter<S, V>where
S: State,
V: Voter,
Trait Implementations
sourceimpl<S, V> Voter for GeneralLeaseGrantingVoter<S, V>where
S: State,
V: Voter<State = S>,
impl<S, V> Voter for GeneralLeaseGrantingVoter<S, V>where
S: State,
V: Voter<State = S>,
type State = S
type State = S
Type of shared state.
type Abstain = Either<Duration, <V as Voter>::Abstain>
type Abstain = Either<Duration, <V as Voter>::Abstain>
Data that will be added to any
Abstain
from elections.sourcefn contemplate_candidate(
&mut self,
round_num: Self::RoundNum,
coord_num: Self::CoordNum,
candidate: Option<&NodeOf<Self::State>>,
state: Option<&Self::State>
) -> Decision<(), Infallible, Self::Abstain>
fn contemplate_candidate(
&mut self,
round_num: Self::RoundNum,
coord_num: Self::CoordNum,
candidate: Option<&NodeOf<Self::State>>,
state: Option<&Self::State>
) -> Decision<(), Infallible, Self::Abstain>
Contemplate a bid for leadership. Read more
sourcefn 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
sourcefn 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 GeneralLeaseGrantingVoter<S, V>
impl<S, V> Send for GeneralLeaseGrantingVoter<S, V>
impl<S, V> Sync for GeneralLeaseGrantingVoter<S, V>where
V: Sync,
impl<S, V> Unpin for GeneralLeaseGrantingVoter<S, V>where
V: Unpin,
impl<S, V> !UnwindSafe for GeneralLeaseGrantingVoter<S, V>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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