pub struct WebSocketClientConfig {
pub queues: QueueLimits,
pub dispatch: DispatchLimits,
pub requests: RequestLimits,
pub frames: FrameConfig,
pub tcp: TcpConfig,
pub heartbeat: Option<HeartbeatConfig>,
pub close_timeout: Duration,
}Expand description
Shared resource limits, transport parameters, and heartbeat configuration for WebSocket clients.
Fields§
§queues: QueueLimitsCapacity of command, I/O event, and normal and emergency send queues.
dispatch: DispatchLimitsResource caps for receiving messages, subscribing to distribution, callback execution, and blocking handshake tasks.
requests: RequestLimitsNumber of pending requests and manual response handling grace configuration.
frames: FrameConfigWebSocket frame fragmentation, read and write buffers and sizes, timeout limits.
tcp: TcpConfigLow-level TCP socket options.
heartbeat: Option<HeartbeatConfig>Active Ping/Pong heartbeat configuration; None means disabling active heartbeat.
close_timeout: DurationMaximum time to wait for the closing handshake and I/O task to finish during shutdown; the default is 2 seconds.
Implementations§
Trait Implementations§
Source§impl Clone for WebSocketClientConfig
impl Clone for WebSocketClientConfig
Source§impl Debug for WebSocketClientConfig
impl Debug for WebSocketClientConfig
Auto Trait Implementations§
impl Freeze for WebSocketClientConfig
impl RefUnwindSafe for WebSocketClientConfig
impl Send for WebSocketClientConfig
impl Sync for WebSocketClientConfig
impl Unpin for WebSocketClientConfig
impl UnsafeUnpin for WebSocketClientConfig
impl UnwindSafe for WebSocketClientConfig
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