Struct naia_client::ClientConfig
source · pub struct ClientConfig {
pub connection: ConnectionConfig,
pub send_handshake_interval: Duration,
pub ping_interval: Duration,
pub handshake_pings: u8,
}
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
ping_interval: Duration
The duration to wait before sending a ping message to the remote host, in order to estimate RTT time
handshake_pings: u8
The number of network samples to take before completing the Connection Handshake. Increase this for greater accuracy of network statistics, at the cost of the handshake taking longer. Keep in mind that the network measurements affect how likely commands are able to arrive at the server before processing.
Trait Implementations§
source§impl Clone for ClientConfig
impl Clone for ClientConfig
source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more