#[non_exhaustive]pub enum WebRtcIpHandling {
Default,
DefaultPublicAndPrivateInterfaces,
DefaultPublicInterfaceOnly,
DisableNonProxiedUdp,
}Expand description
Which local network interfaces WebRTC may reveal to a page.
Applied through Chromium’s --webrtc-ip-handling-policy switch. Chromium’s default
already hides local IP addresses behind mDNS hostnames, so this only matters for an
application that wants to go further.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Default
Chromium’s default.
DefaultPublicAndPrivateInterfaces
Offer both public and private interfaces, which reveals the machine’s LAN address.
DefaultPublicInterfaceOnly
Offer only the public interface.
DisableNonProxiedUdp
Refuse any UDP that does not go through the configured proxy. The strongest of the four, and the one most likely to break a call outright.
Trait Implementations§
Source§impl Clone for WebRtcIpHandling
impl Clone for WebRtcIpHandling
impl Copy for WebRtcIpHandling
Source§impl Debug for WebRtcIpHandling
impl Debug for WebRtcIpHandling
Source§impl Default for WebRtcIpHandling
impl Default for WebRtcIpHandling
impl Eq for WebRtcIpHandling
Source§impl PartialEq for WebRtcIpHandling
impl PartialEq for WebRtcIpHandling
impl StructuralPartialEq for WebRtcIpHandling
Auto Trait Implementations§
impl Freeze for WebRtcIpHandling
impl RefUnwindSafe for WebRtcIpHandling
impl Send for WebRtcIpHandling
impl Sync for WebRtcIpHandling
impl Unpin for WebRtcIpHandling
impl UnsafeUnpin for WebRtcIpHandling
impl UnwindSafe for WebRtcIpHandling
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
impl<T, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
fn wrap_result(self) -> U
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.