pub struct WsServerConfig {
pub addr: String,
pub cert_path: PathBuf,
pub key_path: PathBuf,
pub ca_cert_path: PathBuf,
pub max_connections: usize,
pub connection_timeout: u64,
pub client_cert_required: bool,
}Expand description
Configuration for WebSocket server
Fields§
§addr: StringAddress to bind the server to
cert_path: PathBufPath to server certificate file
key_path: PathBufPath to server private key file
ca_cert_path: PathBufPath to CA certificate file
max_connections: usizeMaximum number of concurrent connections
connection_timeout: u64Connection timeout in seconds
client_cert_required: boolEnable client certificate verification
Trait Implementations§
Source§impl Clone for WsServerConfig
impl Clone for WsServerConfig
Source§fn clone(&self) -> WsServerConfig
fn clone(&self) -> WsServerConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WsServerConfig
impl Debug for WsServerConfig
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)