Implementations
sourceimpl<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,
sourceimpl<S, V> LeaseGrantingVoter<S, V> where
S: State,
V: Voter<Yea = (), Abstain = Infallible>,
impl<S, V> LeaseGrantingVoter<S, V> where
S: State,
V: Voter<Yea = (), Abstain = Infallible>,
Trait Implementations
sourceimpl<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,
sourceimpl<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.
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 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
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