pub struct PeerConfiguration {
pub ice_servers: Vec<ICEServer>,
pub ice_transport_policy: ICETransportPolicy,
pub bundle_policy: BundlePolicy,
pub rtcp_mux_policy: RTCPMuxPolicy,
pub peer_identity: String,
pub ice_candidate_pool_size: u8,
}
Expand description
A Configuration defines how peer-to-peer communication via PeerConnection is established or re-established. Configurations may be set up once and reused across multiple connections. Configurations are treated as readonly. As long as they are unmodified, they are safe for concurrent use.
Fields§
§ice_servers: Vec<ICEServer>
ice_servers defines a slice describing servers available to be used by ICE, such as STUN and TURN servers.
ice_transport_policy: ICETransportPolicy
ice_transport_policy indicates which candidates the ICEAgent is allowed to use.
bundle_policy: BundlePolicy
bundle_policy indicates which media-bundling policy to use when gathering ICE candidates.
rtcp_mux_policy: RTCPMuxPolicy
rtcp_mux_policy indicates which rtcp-mux policy to use when gathering ICE candidates.
peer_identity: String
peer_identity sets the target peer identity for the PeerConnection. The PeerConnection will not establish a connection to a remote peer unless it can be successfully authenticated with the provided name.
ice_candidate_pool_size: u8
ice_candidate_pool_size describes the size of the prefetched ICE pool.
Trait Implementations§
Source§impl Clone for PeerConfiguration
impl Clone for PeerConfiguration
Source§fn clone(&self) -> PeerConfiguration
fn clone(&self) -> PeerConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more