pub struct SyncConfig {
pub heartbeat_interval: Duration,
pub peer_timeout: Duration,
pub max_batch_size: usize,
pub prefer_compressed: bool,
pub protocol_version: u32,
}Expand description
Configuration for sync behavior.
Fields§
§heartbeat_interval: DurationHow often to send heartbeats
peer_timeout: DurationHow long before a peer is considered stale
max_batch_size: usizeMaximum deltas per batch
prefer_compressed: boolWhether to prefer compressed deltas
protocol_version: u32Protocol version
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 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