[][src]Struct naia_client::Config

pub struct Config {
    pub tick_interval: Duration,
    pub send_handshake_interval: Duration,
    pub disconnection_timeout_duration: Duration,
    pub heartbeat_interval: Duration,
    pub rtt_smoothing_factor: f32,
    pub rtt_max_value: u16,
}

Contains Config properties which will be used by a Server or Client

Fields

tick_interval: Duration

The duration between each tick to be emitted by the Server (Client does not emit Tick events just yet)

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.

rtt_smoothing_factor: f32

Value that specifies the factor used to smooth out network jitter. It defaults to 10% of the round-trip time. It is expressed as a ratio, with 0 equal to 0% and 1 equal to 100%.

rtt_max_value: u16

Value which specifies the maximum round trip time before we consider it a problem. This is expressed in milliseconds.

Trait Implementations

impl Clone for Config[src]

impl Debug for Config[src]

impl Default for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

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.