Struct naia_server::shared::SocketConfig
pub struct SocketConfig {
pub link_condition: Option<LinkConditionerConfig>,
pub rtc_endpoint_path: String,
}Expand description
Contains Config properties which will be shared by Server and Client sockets
Fields§
§link_condition: Option<LinkConditionerConfig>Configuration used to simulate network conditions
rtc_endpoint_path: StringThe endpoint URL path to use for initiating new WebRTC sessions
Implementations§
§impl SocketConfig
impl SocketConfig
pub fn new(
link_condition: Option<LinkConditionerConfig>,
rtc_endpoint_path: Option<String>
) -> SocketConfig
pub fn new( link_condition: Option<LinkConditionerConfig>, rtc_endpoint_path: Option<String> ) -> SocketConfig
Creates a new SocketConfig
Trait Implementations§
§impl Clone for SocketConfig
impl Clone for SocketConfig
§fn clone(&self) -> SocketConfig
fn clone(&self) -> SocketConfig
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 more§impl Default for SocketConfig
impl Default for SocketConfig
§fn default() -> SocketConfig
fn default() -> SocketConfig
Returns the “default value” for a type. Read more