[−][src]Struct naia_shared::ConnectionConfig
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.
ping_interval: DurationThe duration to wait before sending a ping message to the remote host, in order to estimate RTT time
rtt_sample_size: u16Number of samples to measure RTT & Jitter by. A higher number will smooth out RTT measurements, but at the cost of responsiveness.
Implementations
impl ConnectionConfig[src]
pub fn new(
disconnection_timeout_duration: Duration,
heartbeat_interval: Duration,
ping_interval: Duration,
rtt_sample_size: u16
) -> Self[src]
disconnection_timeout_duration: Duration,
heartbeat_interval: Duration,
ping_interval: Duration,
rtt_sample_size: u16
) -> Self
Creates a new ConnectionConfig, used to initialize a Connection
Trait Implementations
impl Clone for ConnectionConfig[src]
fn clone(&self) -> ConnectionConfig[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ConnectionConfig[src]
impl Default for ConnectionConfig[src]
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
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,