pub struct HeartbeatConfig {
pub interval: Duration,
pub pong_timeout: Duration,
pub retry: HeartbeatRetryConfig,
}Expand description
Active Ping/Pong heartbeat parameters on each physical connection.
Fields§
§interval: DurationInterval for checking whether to send a heartbeat Ping; the default is 20 seconds. No new probe is created while another Ping is pending.
pong_timeout: DurationThe time limit for waiting for matching payload Pong after Ping is successfully written. The default is 45 seconds.
retry: HeartbeatRetryConfigBounded recovery and safe Ping-write retry policy. The default keeps the existing fail-fast behavior by disabling both retry paths.
Implementations§
Trait Implementations§
Source§impl Clone for HeartbeatConfig
impl Clone for HeartbeatConfig
Source§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