Struct naia_shared::ConnectionConfig
source · pub struct ConnectionConfig {
pub disconnection_timeout_duration: Duration,
pub heartbeat_interval: Duration,
pub bandwidth_measure_duration: Option<Duration>,
}
Expand description
Contains Config properties which will be used by a Server or Client
Fields§
§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
bandwidth_measure_duration: Option<Duration>
The duration over which to measure bandwidth. Set to None to avoid measure bandwidth at all.
Implementations§
Trait Implementations§
source§impl Clone for ConnectionConfig
impl Clone for ConnectionConfig
source§fn clone(&self) -> ConnectionConfig
fn clone(&self) -> ConnectionConfig
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 moresource§impl Debug for ConnectionConfig
impl Debug for ConnectionConfig
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§
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