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§
Source§impl 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§
Source§impl Clone for ServerAddrs
impl Clone for ServerAddrs
Source§fn clone(&self) -> ServerAddrs
fn clone(&self) -> ServerAddrs
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ServerAddrs
impl RefUnwindSafe for ServerAddrs
impl Send for ServerAddrs
impl Sync for ServerAddrs
impl Unpin for ServerAddrs
impl UnwindSafe for ServerAddrs
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