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.
Auto Trait Implementations§
impl Freeze for RocksStateMachine
impl RefUnwindSafe for RocksStateMachine
impl Send for RocksStateMachine
impl Sync for RocksStateMachine
impl Unpin for RocksStateMachine
impl UnwindSafe for RocksStateMachine
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