Struct naia_shared::ConnectionConfig
source · pub struct ConnectionConfig {
pub disconnection_timeout_duration: Duration,
pub heartbeat_interval: Duration,
pub bandwidth_measure_duration: Option<Duration>,
}Expand description
Contains Config properties which will be used by a Server or Client
Fields§
§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
bandwidth_measure_duration: Option<Duration>The duration over which to measure bandwidth. Set to None to avoid measure bandwidth at all.
Implementations§
Trait Implementations§
source§impl Clone for ConnectionConfig
impl Clone for ConnectionConfig
source§fn clone(&self) -> ConnectionConfig
fn clone(&self) -> ConnectionConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more