Struct raft_consensus::state_machine::null::NullStateMachine
[−]
[src]
pub struct NullStateMachine;
A state machine with no states.
Trait Implementations
impl Debug for NullStateMachine
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl StateMachine for NullStateMachine
[src]
fn apply(&mut self, _command: &[u8]) -> Vec<u8>
[src]
Applies a command to the state machine. Returns an application-specific result value. Read more
fn query(&self, _query: &[u8]) -> Vec<u8>
[src]
Queries a value of the state machine. Does not go through the durable log, or mutate the state machine. Returns an application-specific result value. Read more
fn snapshot(&self) -> Vec<u8>
[src]
Take a snapshot of the state machine.
fn restore_snapshot(&mut self, _snapshot: Vec<u8>)
[src]
Restore a snapshot of the state machine.