pub struct WebSocketConfig {
pub max_header_bytes: usize,
pub max_header_count: usize,
pub max_message_bytes: usize,
pub handshake_timeout: Duration,
pub frame_timeout: Duration,
}Expand description
Resource and deadline policy for one WebSocket connection.
Fields§
§max_header_bytes: usizeMaximum bytes read for the HTTP request head.
max_header_count: usizeMaximum number of HTTP request headers.
max_message_bytes: usizeMaximum payload bytes in one binary message.
handshake_timeout: DurationDeadline for reading and answering the HTTP upgrade.
frame_timeout: DurationDeadline for each WebSocket frame operation.
Implementations§
Trait Implementations§
Source§impl Clone for WebSocketConfig
impl Clone for WebSocketConfig
impl Copy for WebSocketConfig
Source§impl Debug for WebSocketConfig
impl Debug for WebSocketConfig
Source§impl Default for WebSocketConfig
impl Default for WebSocketConfig
impl Eq for WebSocketConfig
Source§impl PartialEq for WebSocketConfig
impl PartialEq for WebSocketConfig
impl StructuralPartialEq 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 UnsafeUnpin 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