pub enum Step {
Join {
member_id: String,
},
AssignAndSync {
members: Vec<Subscription>,
},
Sync,
Heartbeat,
FindCoordinator,
}Expand description
What the IO layer should do next.
Variants§
Join
Send JoinGroup with this member id — empty the first time.
AssignAndSync
We are the leader: compute an assignment for these members and send it
in SyncGroup.
Fields
§
members: Vec<Subscription>Sync
We are a follower: send SyncGroup with no assignment.
Heartbeat
Steady state.
FindCoordinator
Re-discover the coordinator, then carry on.
Trait Implementations§
impl Eq for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.