pub enum WebRtcTransportListen {
Individual {
listen_infos: WebRtcTransportListenInfos,
},
Server {
webrtc_server: WebRtcServer,
},
}
Expand description
How WebRtcTransport
should listen on interfaces.
§Notes on usage
- Do not use “0.0.0.0” into
listen_infos
. Values inlisten_infos
must be specific bindable IPs on the host. - If you use “0.0.0.0” or “::” into
listen_infos
, then you need to also provideannounced_address
in the corresponding entry inlisten_infos
.
Variants§
Individual
Listen on individual protocol/IP/port combinations specific to this transport.
Fields
§
listen_infos: WebRtcTransportListenInfos
Listening infos in order of preference (first one is the preferred one).
Server
Share WebRtcServer
with other transports withing the same worker.
Fields
§
webrtc_server: WebRtcServer
WebRtcServer
to use.
Trait Implementations§
Source§impl Clone for WebRtcTransportListen
impl Clone for WebRtcTransportListen
Source§fn clone(&self) -> WebRtcTransportListen
fn clone(&self) -> WebRtcTransportListen
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 moreAuto Trait Implementations§
impl Freeze for WebRtcTransportListen
impl !RefUnwindSafe for WebRtcTransportListen
impl Send for WebRtcTransportListen
impl Sync for WebRtcTransportListen
impl Unpin for WebRtcTransportListen
impl !UnwindSafe for WebRtcTransportListen
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