pub enum PollTransition {
Acquired,
Renewed,
TookOver,
Reacquired,
Followed,
}Expand description
The state-machine transition classified by one poll attempt.
This is an outcome label, not separately persisted durable state. It is
meaningful only with the PollOutcome produced by the committed outer
transaction.
Variants§
Acquired
A released or never-created durable state was acquired immediately.
Renewed
An exact, locally unexpired Leadership token was renewed.
TookOver
An unchanged foreign Observation was replaced after its persisted duration.
Reacquired
An expired Observation of this same participant was acquired again.
Followed
A durable owner was observed without a permitted leadership transition.
This is returned for PollOutcome::Follower and never stages an
ownership mutation.
Trait Implementations§
Source§impl Clone for PollTransition
impl Clone for PollTransition
Source§fn clone(&self) -> PollTransition
fn clone(&self) -> PollTransition
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PollTransition
impl Debug for PollTransition
Source§impl PartialEq for PollTransition
impl PartialEq for PollTransition
impl Copy for PollTransition
impl Eq for PollTransition
impl StructuralPartialEq for PollTransition
Auto Trait Implementations§
impl Freeze for PollTransition
impl RefUnwindSafe for PollTransition
impl Send for PollTransition
impl Sync for PollTransition
impl Unpin for PollTransition
impl UnwindSafe for PollTransition
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