pub struct ServerConfig {
pub max_connections: u8,
pub idle_connection_time: Duration,
}Expand description
The config of how the server should be structured
Fields§
§max_connections: u8The max amount of connections the server will process
idle_connection_time: DurationHow long it takes for the server to free an idling client
Trait Implementations§
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