pub struct WebSocketServerConfig {
pub host: String,
pub port: u16,
pub max_connections: usize,
pub ping_interval: Duration,
}
Expand description
WebSocket server configuration
Fields§
§host: String
§port: u16
§max_connections: usize
§ping_interval: Duration
Trait Implementations§
Source§impl Clone for WebSocketServerConfig
impl Clone for WebSocketServerConfig
Source§fn clone(&self) -> WebSocketServerConfig
fn clone(&self) -> WebSocketServerConfig
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 moreAuto Trait Implementations§
impl Freeze for WebSocketServerConfig
impl RefUnwindSafe for WebSocketServerConfig
impl Send for WebSocketServerConfig
impl Sync for WebSocketServerConfig
impl Unpin for WebSocketServerConfig
impl UnwindSafe for WebSocketServerConfig
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