Struct naia_server_socket::ServerAddrs
source · [−]pub struct ServerAddrs {
pub session_listen_addr: SocketAddr,
pub webrtc_listen_addr: SocketAddr,
pub public_webrtc_url: String,
}Expand description
List of addresses needed to start listening on a ServerSocket
Fields
session_listen_addr: SocketAddrIP Address to listen on for the signaling portion of WebRTC
webrtc_listen_addr: SocketAddrIP Address to listen on for UDP WebRTC data channels
public_webrtc_url: StringThe public WebRTC IP address to advertise
Implementations
sourceimpl ServerAddrs
impl ServerAddrs
sourcepub fn new(
session_listen_addr: SocketAddr,
webrtc_listen_addr: SocketAddr,
public_webrtc_url: &str
) -> Self
pub fn new(
session_listen_addr: SocketAddr,
webrtc_listen_addr: SocketAddr,
public_webrtc_url: &str
) -> Self
Create a new ServerSocketAddrs instance which will be used to start listening on a ServerSocket
Trait Implementations
sourceimpl Clone for ServerAddrs
impl Clone for ServerAddrs
sourcefn clone(&self) -> ServerAddrs
fn clone(&self) -> ServerAddrs
Returns a copy of the value. Read more
1.0.0 · sourcefn 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 ServerAddrs
impl Send for ServerAddrs
impl Sync for ServerAddrs
impl Unpin for ServerAddrs
impl UnwindSafe for ServerAddrs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more