pub struct NullStateMachine;
Expand description
A state machine with no states.
Trait Implementations§
Source§impl Debug for NullStateMachine
impl Debug for NullStateMachine
Source§impl StateMachine for NullStateMachine
impl StateMachine for NullStateMachine
Source§fn apply(&mut self, _command: &[u8]) -> Vec<u8> ⓘ
fn apply(&mut self, _command: &[u8]) -> Vec<u8> ⓘ
Applies a command to the state machine.
Returns an application-specific result value.
Source§fn query(&self, _query: &[u8]) -> Vec<u8> ⓘ
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.
Source§fn restore_snapshot(&mut self, _snapshot: Vec<u8>)
fn restore_snapshot(&mut self, _snapshot: Vec<u8>)
Restore a snapshot of the state machine.
Auto Trait Implementations§
impl Freeze for NullStateMachine
impl RefUnwindSafe for NullStateMachine
impl Send for NullStateMachine
impl Sync for NullStateMachine
impl Unpin for NullStateMachine
impl UnwindSafe for NullStateMachine
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