pub struct SyncConfig {
pub incremental: bool,
pub emit_checkpoints: bool,
pub checkpoint_storage: CheckpointStorage,
}Expand description
Configuration for sync operations.
Controls checkpoint emission and storage behavior.
Fields§
§incremental: boolWhether to run in incremental mode.
When true, the sync operation will:
- Read from a starting checkpoint
- Process only changes since that checkpoint
emit_checkpoints: boolWhether to emit checkpoints during sync.
When true, checkpoints are written according to checkpoint_storage.
checkpoint_storage: CheckpointStorageCheckpoint storage backend configuration
Implementations§
Source§impl SyncConfig
impl SyncConfig
Sourcepub fn full_sync_with_checkpoints(checkpoint_dir: String) -> Self
pub fn full_sync_with_checkpoints(checkpoint_dir: String) -> Self
Create a config for full sync with filesystem checkpoint emission.
Sourcepub fn full_sync_with_surrealdb_checkpoints(
table_name: String,
namespace: String,
database: String,
) -> Self
pub fn full_sync_with_surrealdb_checkpoints( table_name: String, namespace: String, database: String, ) -> Self
Create a config for full sync with SurrealDB checkpoint emission.
Sourcepub fn incremental() -> Self
pub fn incremental() -> Self
Create a config for incremental sync.
Sourcepub fn should_emit_checkpoints(&self) -> bool
pub fn should_emit_checkpoints(&self) -> bool
Check if checkpoint emission is enabled and configured.
Trait Implementations§
Source§impl Clone for SyncConfig
impl Clone for SyncConfig
Source§fn clone(&self) -> SyncConfig
fn clone(&self) -> SyncConfig
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 Debug for SyncConfig
impl Debug for SyncConfig
Auto Trait Implementations§
impl Freeze for SyncConfig
impl RefUnwindSafe for SyncConfig
impl Send for SyncConfig
impl Sync for SyncConfig
impl Unpin for SyncConfig
impl UnsafeUnpin for SyncConfig
impl UnwindSafe for SyncConfig
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