pub struct Config {
pub max_total_connections: usize,
pub max_active_connections: usize,
pub enable_handshake_errors: bool,
pub endpoint_config: EndpointConfig,
}
Expand description
Stores configuration parameters for a Server
object.
Fields§
§max_total_connections: usize
The maximum number of connections, including active connections and connections which are in the process of connecting / disconnecting.
max_active_connections: usize
The maximum number of active connections.
enable_handshake_errors: bool
Whether to emit events in response to client handshake errors.
endpoint_config: EndpointConfig
Endpoint configuration to use for inbound client connections.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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