pub struct NullReplication;Expand description
Null implementation of replication that returns unimplemented errors
Trait Implementations§
Source§impl CommandSubmitter for NullReplication
impl CommandSubmitter for NullReplication
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 Debug for NullReplication
impl Debug for NullReplication
Source§impl SnapshotProvider for NullReplication
impl SnapshotProvider for NullReplication
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 Freeze for NullReplication
impl RefUnwindSafe for NullReplication
impl Send for NullReplication
impl Sync for NullReplication
impl Unpin for NullReplication
impl UnsafeUnpin for NullReplication
impl UnwindSafe for NullReplication
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