pub struct SqliteSyncConfig { /* private fields */ }Expand description
Bounded configuration for one SQLite sync database.
Implementations§
Source§impl SqliteSyncConfig
impl SqliteSyncConfig
Sourcepub fn new(path: impl Into<PathBuf>) -> Self
pub fn new(path: impl Into<PathBuf>) -> Self
Creates a configuration with conservative production bounds.
Sourcepub fn with_max_database_bytes(self, value: u64) -> Self
pub fn with_max_database_bytes(self, value: u64) -> Self
Selects the maximum database size in bytes.
Sourcepub fn with_max_outbox_entries(self, value: usize) -> Self
pub fn with_max_outbox_entries(self, value: usize) -> Self
Selects the maximum number of pending outbox entries.
Sourcepub fn with_max_checkpoints(self, value: usize) -> Self
pub fn with_max_checkpoints(self, value: usize) -> Self
Selects the maximum number of peer checkpoints.
Sourcepub fn with_max_outbox_record_bytes(self, value: usize) -> Self
pub fn with_max_outbox_record_bytes(self, value: usize) -> Self
Selects the maximum encoded size of one outbox entry.
Sourcepub fn with_max_read_records(self, value: usize) -> Self
pub fn with_max_read_records(self, value: usize) -> Self
Selects the maximum record count returned by one log read.
Sourcepub fn with_max_read_bytes(self, value: usize) -> Self
pub fn with_max_read_bytes(self, value: usize) -> Self
Selects the maximum payload bytes returned by one log read.
Sourcepub fn with_max_tombstones(self, value: usize) -> Self
pub fn with_max_tombstones(self, value: usize) -> Self
Selects the maximum retained tombstone count.
Sourcepub fn with_max_connections(self, value: usize) -> Self
pub fn with_max_connections(self, value: usize) -> Self
Selects the maximum number of simultaneously open SQLite connections.
Sourcepub fn with_busy_timeout_ms(self, value: u64) -> Self
pub fn with_busy_timeout_ms(self, value: u64) -> Self
Selects the SQLite writer-admission timeout in milliseconds.
Sourcepub fn with_backup_pages_per_step(self, value: i32) -> Self
pub fn with_backup_pages_per_step(self, value: i32) -> Self
Selects the number of pages copied by each online-backup step.
Trait Implementations§
Source§impl Clone for SqliteSyncConfig
impl Clone for SqliteSyncConfig
Source§fn clone(&self) -> SqliteSyncConfig
fn clone(&self) -> SqliteSyncConfig
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 SqliteSyncConfig
impl Debug for SqliteSyncConfig
impl Eq for SqliteSyncConfig
Source§impl PartialEq for SqliteSyncConfig
impl PartialEq for SqliteSyncConfig
impl StructuralPartialEq for SqliteSyncConfig
Auto Trait Implementations§
impl Freeze for SqliteSyncConfig
impl RefUnwindSafe for SqliteSyncConfig
impl Send for SqliteSyncConfig
impl Sync for SqliteSyncConfig
impl Unpin for SqliteSyncConfig
impl UnsafeUnpin for SqliteSyncConfig
impl UnwindSafe for SqliteSyncConfig
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