Struct naia_shared::SocketConfig
source · 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: String
The endpoint URL path to use for initiating new WebRTC sessions
Implementations§
source§impl SocketConfig
impl SocketConfig
sourcepub 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§
source§impl Clone for SocketConfig
impl Clone for SocketConfig
source§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 moresource§impl Default for SocketConfig
impl Default for SocketConfig
source§fn default() -> SocketConfig
fn default() -> SocketConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SocketConfig
impl Send for SocketConfig
impl Sync for SocketConfig
impl Unpin for SocketConfig
impl UnwindSafe for SocketConfig
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