pub struct WebSocketConfig {
pub max_message_size: usize,
pub idle_timeout_secs: u64,
pub message_rate_limit: u32,
pub upstream_rate_limit: u32,
}Expand description
Configuration for WebSocket transport.
Fields§
§max_message_size: usizeMaximum message size in bytes (default: 1 MB).
idle_timeout_secs: u64Idle timeout in seconds — close connection after no message activity (default: 300s). SECURITY (FIND-R182-001): True idle timeout that resets on every message.
message_rate_limit: u32Maximum messages per second per connection for client-to-upstream (default: 100).
upstream_rate_limit: u32Maximum messages per second per connection for upstream-to-client (default: 500). SECURITY (FIND-R46-WS-003): Rate limits on the upstream→client direction prevent a malicious upstream from flooding the client with responses.
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 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