pub enum Role {
Normal(NormalReplica),
ViewChanging(ViewChange),
Installing(InstallingView),
Fenced(Scope),
}Expand description
Owned protocol phase; extracting it does not establish installation authority.
Variants§
Normal(NormalReplica)
Existing normal state, including any fault/fence status.
ViewChanging(ViewChange)
Fenced old state and bounded election evidence.
Installing(InstallingView)
Owned selected-log publication; no normal authority until exact completion.
Fenced(Scope)
A consuming transition failed and took the previous phase with it. Every event fails closed; only restart recovery resumes this voter.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
impl UnwindSafe for Role
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