pub enum NextState {
Leadership {
rank: Rank,
lease_duration: Duration,
},
Observation {
owner: ParticipantId,
rank: Rank,
lease_duration: Duration,
timer: ObservationTimer,
},
}Expand description
The clock-free state a caller carries to its next poll.
It holds no time. The caller anchors it on its own monotonic clock, see
LocalState::adopt for the anchoring rules.
Variants§
Leadership
The polling participant staged itself as owner of this exact record.
lease_duration is the polling handle’s configured duration, which is
the one persisted with rank.
Observation
The exact durable owner record observed by this poll.
Trait Implementations§
impl Eq for NextState
impl StructuralPartialEq for NextState
Auto Trait Implementations§
impl Freeze for NextState
impl RefUnwindSafe for NextState
impl Send for NextState
impl Sync for NextState
impl Unpin for NextState
impl UnwindSafe for NextState
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