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