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