pub struct HeartbeatConfig {
pub interval_ms: u64,
pub timeout_ms: u64,
pub max_missed: u32,
}Expand description
Configuration for heartbeat-based failure detection
Fields§
§interval_ms: u64Interval between heartbeat sends in milliseconds
timeout_ms: u64Time in milliseconds after which a peer is considered potentially failed
max_missed: u32Number of consecutive missed heartbeats before declaring failure
Implementations§
Source§impl HeartbeatConfig
impl HeartbeatConfig
Trait Implementations§
Source§impl Clone for HeartbeatConfig
impl Clone for HeartbeatConfig
Source§fn clone(&self) -> HeartbeatConfig
fn clone(&self) -> HeartbeatConfig
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 HeartbeatConfig
impl Debug for HeartbeatConfig
Auto Trait Implementations§
impl Freeze for HeartbeatConfig
impl RefUnwindSafe for HeartbeatConfig
impl Send for HeartbeatConfig
impl Sync for HeartbeatConfig
impl Unpin for HeartbeatConfig
impl UnsafeUnpin for HeartbeatConfig
impl UnwindSafe for HeartbeatConfig
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