Struct naia_server::ServerAddresses [−][src]
pub struct ServerAddresses { /* fields omitted */ }A collection of IP addresses describing which IP to listen on for new sessions, which to dedicate to UDP traffic, and which to advertise publicly
Implementations
impl ServerAddresses[src]
impl ServerAddresses[src]pub fn new(
session_listen_addr: SocketAddr,
webrtc_listen_addr: SocketAddr,
public_webrtc_addr: SocketAddr
) -> Self[src]
session_listen_addr: SocketAddr,
webrtc_listen_addr: SocketAddr,
public_webrtc_addr: SocketAddr
) -> Self
Create a new ServerAddresses config struct from component addresses
Auto Trait Implementations
impl RefUnwindSafe for ServerAddresses
impl RefUnwindSafe for ServerAddressesimpl Send for ServerAddresses
impl Send for ServerAddressesimpl Sync for ServerAddresses
impl Sync for ServerAddressesimpl Unpin for ServerAddresses
impl Unpin for ServerAddressesimpl UnwindSafe for ServerAddresses
impl UnwindSafe for ServerAddresses