pub struct LocalReplication<E>where
E: KvEngine + SnapshotEngine,{ /* private fields */ }Expand description
Local replication implementation that forwards to a single engine
Implementations§
Source§impl<E> LocalReplication<E>where
E: KvEngine + SnapshotEngine,
impl<E> LocalReplication<E>where
E: KvEngine + SnapshotEngine,
Trait Implementations§
Source§impl<E> Clone for LocalReplication<E>
impl<E> Clone for LocalReplication<E>
Source§fn clone(&self) -> LocalReplication<E>
fn clone(&self) -> LocalReplication<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E> CommandSubmitter for LocalReplication<E>where
E: KvEngine + SnapshotEngine,
impl<E> CommandSubmitter for LocalReplication<E>where
E: KvEngine + SnapshotEngine,
Source§fn submit(&self, command: Command) -> Result<ApplyOutcome>
fn submit(&self, command: Command) -> Result<ApplyOutcome>
Submits a single command and returns the outcome
Source§fn submit_batch<I>(&self, commands: I) -> Result<Vec<ApplyOutcome>>where
I: IntoIterator<Item = Command>,
fn submit_batch<I>(&self, commands: I) -> Result<Vec<ApplyOutcome>>where
I: IntoIterator<Item = Command>,
Submits a batch of commands and returns the outcomes
Source§impl<E> Debug for LocalReplication<E>
impl<E> Debug for LocalReplication<E>
Source§impl<E> SnapshotProvider for LocalReplication<E>where
E: KvEngine + SnapshotEngine,
impl<E> SnapshotProvider for LocalReplication<E>where
E: KvEngine + SnapshotEngine,
Source§fn snapshot_state(&self) -> Result<KvState>
fn snapshot_state(&self) -> Result<KvState>
Returns a snapshot of the current state
Source§fn latest_version(&self) -> Result<u64>
fn latest_version(&self) -> Result<u64>
Returns the latest version number
Auto Trait Implementations§
impl<E> Freeze for LocalReplication<E>
impl<E> RefUnwindSafe for LocalReplication<E>where
E: RefUnwindSafe,
impl<E> Send for LocalReplication<E>
impl<E> Sync for LocalReplication<E>
impl<E> Unpin for LocalReplication<E>
impl<E> UnsafeUnpin for LocalReplication<E>
impl<E> UnwindSafe for LocalReplication<E>where
E: RefUnwindSafe,
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