pub struct ServerConfig {
pub web_socket_config: Option<WebSocketConfig>,
pub tls_config: Option<Arc<ServerConfig>>,
}
Expand description
Used for spawning a websockets server, including the general websocket connection configuration, and a tls_config, which is basically a TLS config in the case you want to have TLS enabled for your server.
Fields§
§web_socket_config: Option<WebSocketConfig>
§tls_config: Option<Arc<ServerConfig>>
We currently support tokio-rustls/rustls for enabling TLS on server-side This config holds information about the TLS certificate-chain and everything that should be taken into consideration over the TLS setup.
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
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 ServerConfig
impl Debug for ServerConfig
Source§impl Default for ServerConfig
impl Default for ServerConfig
Source§fn default() -> ServerConfig
fn default() -> ServerConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServerConfig
impl !RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl !UnwindSafe for ServerConfig
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