pub struct HeartbeatRetryConfig {
pub pong_recovery_attempts: usize,
pub pong_retry_interval: Duration,
pub ping_write_retries: usize,
pub ping_write_retry_interval: Duration,
}Expand description
Bounded recovery policy for WebSocket control-layer heartbeats.
pong_recovery_attempts counts the additional Ping probes after the
normal probe’s Pong deadline expires and is limited to ten. ping_write_retries
counts only additional safe write attempts after the initial normal-heartbeat write.
A write timeout or an error with unknown delivery is never retried on the
same sink; the physical connection is retired instead.
Fields§
§pong_recovery_attempts: usizeNumber of additional fast Ping probes after a Pong timeout.
pong_retry_interval: DurationMaximum wait for a matching Pong for each recovery probe and the delay before the next probe.
ping_write_retries: usizeNumber of additional normal-heartbeat Ping write attempts.
ping_write_retry_interval: DurationDelay between safe normal-heartbeat Ping write attempts.
Implementations§
Trait Implementations§
Source§impl Clone for HeartbeatRetryConfig
impl Clone for HeartbeatRetryConfig
Source§impl Debug for HeartbeatRetryConfig
impl Debug for HeartbeatRetryConfig
Auto Trait Implementations§
impl Freeze for HeartbeatRetryConfig
impl RefUnwindSafe for HeartbeatRetryConfig
impl Send for HeartbeatRetryConfig
impl Sync for HeartbeatRetryConfig
impl Unpin for HeartbeatRetryConfig
impl UnsafeUnpin for HeartbeatRetryConfig
impl UnwindSafe for HeartbeatRetryConfig
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