[−][src]Struct naia_client::Config
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,