pub struct WsServerConfig {
pub bind_addr: SocketAddr,
pub max_connections_per_room: usize,
pub ping_interval_ms: u64,
pub connection_timeout_ms: u64,
pub broadcast_capacity: usize,
}Expand description
Configuration for the WebSocket server.
Fields§
§bind_addr: SocketAddrAddress to bind to (e.g., “0.0.0.0:8080”).
max_connections_per_room: usizeMaximum connections per room.
ping_interval_ms: u64Ping interval in milliseconds.
connection_timeout_ms: u64Connection timeout in milliseconds.
broadcast_capacity: usizeCapacity for the state broadcast channel.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WsServerConfig
impl RefUnwindSafe for WsServerConfig
impl Send for WsServerConfig
impl Sync for WsServerConfig
impl Unpin for WsServerConfig
impl UnwindSafe for WsServerConfig
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