pub enum Step {
Claim,
Read,
Grace,
StandBy {
why: Why,
retry: bool,
},
Retry,
TakeOver,
StepDown(StepDownWhy),
Nothing,
}Expand description
What an Elector asks its runtime to do.
Variants§
Claim
Put the descriptor, the interface marked standby, declare the
instance token and the watch with its round trip (§2.5 step 1,
§2.7), then call Elector::finish.
Read
Make one read of the address (§0), then hand it back as
Event::Read.
Grace
Arm the grace timer, then hand it back as Event::Timer (§2.9).
StandBy
Stand by (§2.4), following the address; arm the retry timer when
retry (§2.5).
Retry
Serving, arm the retry timer, then hand it back as Event::Timer:
a heal’s read not complete showing fewer than two holders, which
ends nothing (§2.9; text 0.2, F-199).
TakeOver
Take over in core §8.2’s order (§2.6), then call
Elector::finish.
StepDown(StepDownWhy)
Step down in the reverse order (§2.9), then call
Elector::finish.
Nothing
Nothing to do.
Implementations§
Trait Implementations§
impl Eq for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Forget for Step
impl Freeze for Step
impl Move for Step
impl RefUnwindSafe for Step
impl Send for Stepwhere
RawVecInner: Send,
impl Sync for Stepwhere
RawVecInner: Sync,
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Stepwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more