pub struct Options { /* private fields */ }Available on non-
wasm_browser only.Expand description
Options for running probes
By default, will run icmp over IPv4, icmp over IPv6, and Https probes.
Use Options::stun_v4, Options::stun_v6, and Options::quic_config
to enable STUN over IPv4, STUN over IPv6, and QUIC address discovery.
Implementations§
Source§impl Options
impl Options
Sourcepub fn stun_v4(self, sock: Option<Arc<UdpSocket>>) -> Self
pub fn stun_v4(self, sock: Option<Arc<UdpSocket>>) -> Self
Set the ipv4 stun socket and enable ipv4 stun probes
Sourcepub fn stun_v6(self, sock: Option<Arc<UdpSocket>>) -> Self
pub fn stun_v6(self, sock: Option<Arc<UdpSocket>>) -> Self
Set the ipv6 stun socket and enable ipv6 stun probes
Sourcepub fn quic_config(self, quic_config: Option<QuicConfig>) -> Self
pub fn quic_config(self, quic_config: Option<QuicConfig>) -> Self
Enable quic probes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl !RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl !UnwindSafe for Options
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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