pub struct NoOpSyncEngine;Expand description
A no-op implementation for testing/standalone mode.
Logs operations but doesn’t actually store anything.
Trait Implementations§
Source§impl Clone for NoOpSyncEngine
impl Clone for NoOpSyncEngine
Source§fn clone(&self) -> NoOpSyncEngine
fn clone(&self) -> NoOpSyncEngine
Returns a duplicate 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 SyncEngineRef for NoOpSyncEngine
impl SyncEngineRef for NoOpSyncEngine
Source§fn submit(
&self,
item: SyncItem,
) -> Pin<Box<dyn Future<Output = SyncResult<()>> + Send + '_>>
fn submit( &self, item: SyncItem, ) -> Pin<Box<dyn Future<Output = SyncResult<()>> + Send + '_>>
Submit an item to the local sync-engine. Read more
Source§fn delete(
&self,
key: String,
) -> Pin<Box<dyn Future<Output = SyncResult<bool>> + Send + '_>>
fn delete( &self, key: String, ) -> Pin<Box<dyn Future<Output = SyncResult<bool>> + Send + '_>>
Delete an item from the local sync-engine. Read more
Source§fn delete_replicated(
&self,
key: String,
) -> Pin<Box<dyn Future<Output = SyncResult<bool>> + Send + '_>>
fn delete_replicated( &self, key: String, ) -> Pin<Box<dyn Future<Output = SyncResult<bool>> + Send + '_>>
Delete a replicated item (does NOT emit CDC events). Read more
Source§fn is_current(
&self,
key: &str,
content_hash: &str,
) -> Pin<Box<dyn Future<Output = SyncResult<bool>> + Send + '_>>
fn is_current( &self, key: &str, content_hash: &str, ) -> Pin<Box<dyn Future<Output = SyncResult<bool>> + Send + '_>>
Check if we already have content with this hash. Read more
Source§fn get_merkle_root(&self) -> BoxFuture<'_, Option<[u8; 32]>>
fn get_merkle_root(&self) -> BoxFuture<'_, Option<[u8; 32]>>
Get the Merkle root hash (for cold path comparison).
Source§fn get_merkle_children(
&self,
_path: &str,
) -> BoxFuture<'_, Vec<(String, [u8; 32])>>
fn get_merkle_children( &self, _path: &str, ) -> BoxFuture<'_, Vec<(String, [u8; 32])>>
Get children of a Merkle path (for cold path drill-down).
Source§fn get(&self, _key: &str) -> BoxFuture<'_, Option<Vec<u8>>>
fn get(&self, _key: &str) -> BoxFuture<'_, Option<Vec<u8>>>
Fetch an item by key (for cold path repair).
Source§fn should_accept_writes(&self) -> bool
fn should_accept_writes(&self) -> bool
Check if the sync-engine is accepting writes (backpressure check). Read more
Auto Trait Implementations§
impl Freeze for NoOpSyncEngine
impl RefUnwindSafe for NoOpSyncEngine
impl Send for NoOpSyncEngine
impl Sync for NoOpSyncEngine
impl Unpin for NoOpSyncEngine
impl UnwindSafe for NoOpSyncEngine
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more