pub struct KeyValueStateMachine { /* private fields */ }Expand description
A key-value store state machine for testing and examples.
Implementations§
Trait Implementations§
Source§impl Clone for KeyValueStateMachine
impl Clone for KeyValueStateMachine
Source§fn clone(&self) -> KeyValueStateMachine
fn clone(&self) -> KeyValueStateMachine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyValueStateMachine
impl Debug for KeyValueStateMachine
Source§impl Default for KeyValueStateMachine
impl Default for KeyValueStateMachine
Source§impl StateMachine for KeyValueStateMachine
impl StateMachine for KeyValueStateMachine
Source§fn apply(&mut self, command: Self::Command) -> Self::Output
fn apply(&mut self, command: Self::Command) -> Self::Output
Applies a command to the state machine, returning the result. Read more
Source§fn snapshot(&self) -> Self::SnapshotData
fn snapshot(&self) -> Self::SnapshotData
Creates a snapshot of the current state. Read more
Source§fn restore(&mut self, snapshot: Self::SnapshotData)
fn restore(&mut self, snapshot: Self::SnapshotData)
Restores the state machine from a snapshot. Read more
Auto Trait Implementations§
impl Freeze for KeyValueStateMachine
impl RefUnwindSafe for KeyValueStateMachine
impl Send for KeyValueStateMachine
impl Sync for KeyValueStateMachine
impl Unpin for KeyValueStateMachine
impl UnwindSafe for KeyValueStateMachine
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