pub struct WebSocketLimitsConfig {
pub max_message_bytes: usize,
pub max_frame_bytes: usize,
pub handshake_timeout: Duration,
pub max_pending_handshakes: usize,
}Expand description
Resource limits for WebSocket connections, applied before and during the handshake.
Fields§
§max_message_bytes: usizeLargest inbound message; a larger one closes the connection.
ARETE_WS_MAX_MESSAGE_BYTES.
max_frame_bytes: usizeLargest inbound frame; a larger one closes the connection. ARETE_WS_MAX_FRAME_BYTES.
handshake_timeout: DurationTime allowed from TCP accept to a completed upgrade, authentication included.
ARETE_WS_HANDSHAKE_TIMEOUT_MS.
max_pending_handshakes: usizeConnections allowed to be mid-handshake at once. Each also counts against the server’s
client limit while it is pending. ARETE_WS_MAX_PENDING_HANDSHAKES.
Implementations§
Trait Implementations§
Source§impl Clone for WebSocketLimitsConfig
impl Clone for WebSocketLimitsConfig
Source§impl Debug for WebSocketLimitsConfig
impl Debug for WebSocketLimitsConfig
Source§impl Default for WebSocketLimitsConfig
impl Default for WebSocketLimitsConfig
impl Eq for WebSocketLimitsConfig
Source§impl PartialEq for WebSocketLimitsConfig
impl PartialEq for WebSocketLimitsConfig
impl StructuralPartialEq for WebSocketLimitsConfig
Auto Trait Implementations§
impl Forget for WebSocketLimitsConfig
impl Freeze for WebSocketLimitsConfig
impl RefUnwindSafe for WebSocketLimitsConfig
impl Send for WebSocketLimitsConfig
impl Sync for WebSocketLimitsConfig
impl Unpin for WebSocketLimitsConfig
impl UnsafeUnpin for WebSocketLimitsConfig
impl UnwindSafe for WebSocketLimitsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.