Struct naia_client::ClientConfig
source · [−]pub struct ClientConfig {
pub connection: ConnectionConfig,
pub send_handshake_interval: Duration,
pub minimum_latency: Option<Duration>,
}
Expand description
Contains Config properties which will be used by a Server or Client
Fields
connection: ConnectionConfig
Used to configure the connection with the Server
send_handshake_interval: Duration
The duration between the resend of certain connection handshake messages
minimum_latency: Option<Duration>
The minimum of measured latency to the Server that the Client use to ensure packets arrive in time. Should be fine if this is 0, but you’ll increase the chance that packets always arrive to be processed by the Server with a higher number. This is especially helpful early on in the connection, when estimates of latency are less accurate.
Trait Implementations
sourceimpl Clone for ClientConfig
impl Clone for ClientConfig
sourcefn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more