Struct openraft_rocksstore::RocksStateMachine
source · pub struct RocksStateMachine {
pub db: Arc<DB>,
}
Fields§
§db: Arc<DB>
Application data.
Implementations§
source§impl RocksStateMachine
impl RocksStateMachine
pub fn get( &self, key: &str ) -> Result<Option<String>, StorageError<RocksNodeId>>
Trait Implementations§
source§impl Clone for RocksStateMachine
impl Clone for RocksStateMachine
source§fn clone(&self) -> RocksStateMachine
fn clone(&self) -> RocksStateMachine
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 RocksStateMachine
impl Debug for RocksStateMachine
source§impl From<&RocksStateMachine> for SerializableRocksStateMachine
impl From<&RocksStateMachine> for SerializableRocksStateMachine
source§fn from(state: &RocksStateMachine) -> Self
fn from(state: &RocksStateMachine) -> Self
Converts to this type from the input type.