pub enum IcePolicy {
Relay,
All,
Direct,
}Expand description
Which ICE candidates clients may use.
Peer-to-peer media shows each participant’s IP address to the others. Only relay hides
it: every packet goes through a TURN server, which sees addresses but not media.
Variants§
Relay
TURN relays only (iceTransportPolicy: "relay"): no participant learns another’s
address.
All
Relays and direct paths: direct paths reveal addresses to other participants.
Direct
The host has no TURN server: media can only go peer to peer, which reveals each participant’s IP address to the others. Clients must ask the user before joining.
Trait Implementations§
impl Copy for IcePolicy
Source§impl<'de> Deserialize<'de> for IcePolicy
impl<'de> Deserialize<'de> for IcePolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IcePolicy
impl StructuralPartialEq for IcePolicy
Auto Trait Implementations§
impl Freeze for IcePolicy
impl RefUnwindSafe for IcePolicy
impl Send for IcePolicy
impl Sync for IcePolicy
impl Unpin for IcePolicy
impl UnsafeUnpin for IcePolicy
impl UnwindSafe for IcePolicy
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