pub struct WebSocketConfig {
pub max_message_size: Option<usize>,
pub max_frame_size: Option<usize>,
pub auto_pong: bool,
pub ping_interval: Option<u64>,
pub connect_timeout: Option<u64>,
}
Expand description
WebSocket protocol configuration
Fields§
§max_message_size: Option<usize>
Maximum message size in bytes
max_frame_size: Option<usize>
Maximum frame size in bytes
auto_pong: bool
Enable automatic ping/pong handling
ping_interval: Option<u64>
Ping interval in seconds
connect_timeout: Option<u64>
Connection timeout in seconds
Trait Implementations§
Source§impl Clone for WebSocketConfig
impl Clone for WebSocketConfig
Source§fn clone(&self) -> WebSocketConfig
fn clone(&self) -> WebSocketConfig
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 WebSocketConfig
impl Debug for WebSocketConfig
Auto Trait Implementations§
impl Freeze for WebSocketConfig
impl RefUnwindSafe for WebSocketConfig
impl Send for WebSocketConfig
impl Sync for WebSocketConfig
impl Unpin for WebSocketConfig
impl UnwindSafe for WebSocketConfig
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