pub struct Config {
pub max_connections: usize,
pub udp_heartbeat_interval: Duration,
}
Expand description
Server configuration
Fields§
§max_connections: usize
Limit number of concurrently connected clients.
udp_heartbeat_interval: Duration
Interval between each UDP heartbeat message being emitted to connected peers.
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