Struct jopemachine_raft::SoftState
source · pub struct SoftState {
pub leader_id: u64,
pub raft_state: StateRole,
}
Expand description
SoftState provides state that is useful for logging and debugging. The state is volatile and does not need to be persisted to the WAL.
Fields§
§leader_id: u64
The potential leader of the cluster.
raft_state: StateRole
The soft role this node may take.
Trait Implementations§
source§impl PartialEq for SoftState
impl PartialEq for SoftState
impl Eq for SoftState
impl StructuralPartialEq for SoftState
Auto Trait Implementations§
impl RefUnwindSafe for SoftState
impl Send for SoftState
impl Sync for SoftState
impl Unpin for SoftState
impl UnwindSafe for SoftState
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