#[non_exhaustive]pub struct CrossDcSettings {
pub heartbeat_interval: Duration,
pub acceptable_pause: Duration,
pub max_monitored_peers: usize,
}Expand description
Slow-path settings used for cross-DC heartbeats / gossip.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.heartbeat_interval: DurationHeartbeat interval for peers in a different DC.
acceptable_pause: DurationAcceptable pause window for cross-DC peers (bigger than the in-DC default to absorb WAN jitter).
max_monitored_peers: usizeThreshold to keep at most n cross-DC peers actively
monitored.
Trait Implementations§
Source§impl Clone for CrossDcSettings
impl Clone for CrossDcSettings
Source§fn clone(&self) -> CrossDcSettings
fn clone(&self) -> CrossDcSettings
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 CrossDcSettings
impl Debug for CrossDcSettings
Source§impl Default for CrossDcSettings
impl Default for CrossDcSettings
impl Copy for CrossDcSettings
Auto Trait Implementations§
impl Freeze for CrossDcSettings
impl RefUnwindSafe for CrossDcSettings
impl Send for CrossDcSettings
impl Sync for CrossDcSettings
impl Unpin for CrossDcSettings
impl UnsafeUnpin for CrossDcSettings
impl UnwindSafe for CrossDcSettings
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