pub struct ReplicationOptions {
pub batch_size: u64,
pub batches_limit: u64,
pub filter: Option<ReplicationFilter>,
pub live: bool,
pub retry: bool,
pub poll_interval: Duration,
pub back_off_function: Option<Box<dyn Fn(u32) -> Duration + Send + Sync>>,
pub since: Option<Seq>,
pub checkpoint: bool,
}Expand description
Replication configuration.
Fields§
§batch_size: u64Number of documents to process per batch.
batches_limit: u64Maximum number of batches to buffer.
filter: Option<ReplicationFilter>Optional filter for selective replication.
live: boolEnable continuous/live replication.
retry: boolAutomatically retry on transient errors.
poll_interval: DurationPolling interval for live replication (default: 500ms).
back_off_function: Option<Box<dyn Fn(u32) -> Duration + Send + Sync>>Backoff function for retry: takes attempt number, returns delay.
since: Option<Seq>Override the starting sequence (skip checkpoint lookup).
checkpoint: boolWhether to save/read checkpoints (default: true). Set to false to always replicate from scratch.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReplicationOptions
impl !RefUnwindSafe for ReplicationOptions
impl Send for ReplicationOptions
impl Sync for ReplicationOptions
impl Unpin for ReplicationOptions
impl !UnwindSafe for ReplicationOptions
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