Struct raft_consensus::state_machine::null::NullStateMachine [−][src]
pub struct NullStateMachine;
A state machine with no states.
Trait Implementations
impl Debug for NullStateMachine
[src]
impl Debug for NullStateMachine
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl StateMachine for NullStateMachine
[src]
impl StateMachine for NullStateMachine
fn apply(&mut self, _command: &[u8]) -> Vec<u8>
[src]
fn apply(&mut self, _command: &[u8]) -> Vec<u8>
Applies a command to the state machine. Returns an application-specific result value. Read more
fn query(&self, _query: &[u8]) -> Vec<u8>
[src]
fn query(&self, _query: &[u8]) -> Vec<u8>
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]
fn snapshot(&self) -> Vec<u8>
Take a snapshot of the state machine.
fn restore_snapshot(&mut self, _snapshot: Vec<u8>)
[src]
fn restore_snapshot(&mut self, _snapshot: Vec<u8>)
Restore a snapshot of the state machine.
Auto Trait Implementations
impl Send for NullStateMachine
impl Send for NullStateMachine
impl Sync for NullStateMachine
impl Sync for NullStateMachine