pub struct StateMachineStore {
pub state_machine: RwLock<StateMachineData<TypeConfig>>,
/* private fields */
}Expand description
Defines a state machine for the Raft cluster. This state machine represents a copy of the data for this node. Additionally, it is responsible for storing the last snapshot of the data.
Fields§
§state_machine: RwLock<StateMachineData<TypeConfig>>The Raft state machine.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for StateMachineStore
impl !RefUnwindSafe for StateMachineStore
impl !UnwindSafe for StateMachineStore
impl Send for StateMachineStore
impl Sync for StateMachineStore
impl Unpin for StateMachineStore
impl UnsafeUnpin for StateMachineStore
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