Struct naia_server::ServerConfig [−][src]
pub struct ServerConfig {
pub send_handshake_interval: Duration,
pub disconnection_timeout_duration: Duration,
pub heartbeat_interval: Duration,
pub ping_interval: Duration,
pub rtt_sample_size: u16,
}Contains Config properties which will be used by a Server or Client
Fields
send_handshake_interval: DurationThe duration between the resend of certain connection handshake messages
disconnection_timeout_duration: DurationThe duration to wait for communication from a remote host before initiating a disconnect
heartbeat_interval: DurationThe duration to wait before sending a heartbeat message to a remote host, if the host has not already sent another message within that time.
ping_interval: DurationThe duration to wait before sending a ping message to the remote host, in order to estimate RTT time
rtt_sample_size: u16Number of samples to measure RTT & Jitter by. A higher number will smooth out RTT measurements, but at the cost of responsiveness.
Trait Implementations
impl Clone for ServerConfig[src]
impl Clone for ServerConfig[src]fn clone(&self) -> ServerConfig[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for ServerConfig[src]
impl Default for ServerConfig[src]Auto Trait Implementations
impl RefUnwindSafe for ServerConfig
impl RefUnwindSafe for ServerConfigimpl Send for ServerConfig
impl Send for ServerConfigimpl Sync for ServerConfig
impl Sync for ServerConfigimpl Unpin for ServerConfig
impl Unpin for ServerConfigimpl UnwindSafe for ServerConfig
impl UnwindSafe for ServerConfig