pub struct SyncConfig {
pub mode: SyncMode,
pub sync_interval: Duration,
pub enable_rate_limiting: bool,
pub rate_limit_config: RateLimitConfig,
pub enable_field_compression: bool,
pub auto_reconnect: bool,
pub max_reconnect_attempts: u32,
pub reconnect_delay: Duration,
}Fields§
§mode: SyncMode§sync_interval: Duration§enable_rate_limiting: bool§rate_limit_config: RateLimitConfig§enable_field_compression: bool§auto_reconnect: bool§max_reconnect_attempts: u32§reconnect_delay: DurationImplementations§
Source§impl SyncConfig
impl SyncConfig
pub fn new() -> Self
pub fn with_mode(self, mode: SyncMode) -> Self
pub fn with_sync_interval(self, interval: Duration) -> Self
pub fn with_rate_limiting(self, enabled: bool) -> Self
pub fn with_rate_limit_config(self, config: RateLimitConfig) -> Self
pub fn with_field_compression(self, enabled: bool) -> Self
pub fn with_auto_reconnect(self, enabled: bool, max_attempts: u32) -> Self
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 · 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 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