pub struct HealthConfig {
pub ping_interval: Duration,
pub pong_timeout: Duration,
pub use_websocket_ping: bool,
pub use_app_level_ping: bool,
}Expand description
Configuration for WebSocket health monitoring
Fields§
§ping_interval: DurationInterval between ping messages
pong_timeout: DurationTimeout for pong responses
use_websocket_ping: boolWhether to use WebSocket-level pings
use_app_level_ping: boolWhether to use application-level pings
Trait Implementations§
Source§impl Clone for HealthConfig
impl Clone for HealthConfig
Source§fn clone(&self) -> HealthConfig
fn clone(&self) -> HealthConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HealthConfig
impl Debug for HealthConfig
Auto Trait Implementations§
impl Freeze for HealthConfig
impl RefUnwindSafe for HealthConfig
impl Send for HealthConfig
impl Sync for HealthConfig
impl Unpin for HealthConfig
impl UnwindSafe for HealthConfig
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