[][src]Struct naia_server::ServerConfig

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: Duration

The duration between the resend of certain connection handshake messages

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

rtt_sample_size: u16

Number 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 Debug for ServerConfig[src]

impl Default for ServerConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,