Struct openraft_sledstore::ExampleStateMachine
source · pub struct ExampleStateMachine {
pub db: Arc<Db>,
}
Fields§
§db: Arc<Db>
Application data.
Implementations§
source§impl ExampleStateMachine
impl ExampleStateMachine
pub fn get( &self, key: &str ) -> Result<Option<String>, StorageError<ExampleNodeId>>
pub fn get_all(&self) -> Result<Vec<String>, StorageError<ExampleNodeId>>
Trait Implementations§
source§impl Clone for ExampleStateMachine
impl Clone for ExampleStateMachine
source§fn clone(&self) -> ExampleStateMachine
fn clone(&self) -> ExampleStateMachine
Returns a copy 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 ExampleStateMachine
impl Debug for ExampleStateMachine
source§impl From<&ExampleStateMachine> for SerializableExampleStateMachine
impl From<&ExampleStateMachine> for SerializableExampleStateMachine
source§fn from(state: &ExampleStateMachine) -> Self
fn from(state: &ExampleStateMachine) -> Self
Converts to this type from the input type.