Struct naia_shared::ConnectionConfig [−][src]
pub struct ConnectionConfig {
pub disconnection_timeout_duration: Duration,
pub heartbeat_interval: Duration,
pub ping_interval: Duration,
pub ping_sample_size: u16,
}
Expand description
Contains Config properties which will be used by a Server or Client
Fields
disconnection_timeout_duration: Duration
The duration to wait for communication from a remote host before initiating a disconnect
heartbeat_interval: Duration
The 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: Duration
The duration to wait before sending a ping message to the remote host, in order to estimate RTT time
ping_sample_size: u16
Number of samples to measure Ping & Jitter by. A higher number will smooth out Ping measurements, but at the cost of responsiveness.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ConnectionConfig
impl Send for ConnectionConfig
impl Sync for ConnectionConfig
impl Unpin for ConnectionConfig
impl UnwindSafe for ConnectionConfig
Blanket Implementations
Mutably borrows from an owned value. Read more