pub struct Options { /* private fields */ }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
Available on non-wasm_browser only.
pub fn stun_v4(self, sock: Option<Arc<UdpSocket>>) -> Self
wasm_browser only.Set the ipv4 stun socket and enable ipv4 stun probes
Sourcepub fn stun_v6(self, sock: Option<Arc<UdpSocket>>) -> Self
Available on non-wasm_browser only.
pub fn stun_v6(self, sock: Option<Arc<UdpSocket>>) -> Self
wasm_browser only.Set the ipv6 stun socket and enable ipv6 stun probes
Sourcepub fn quic_config(self, quic_config: Option<QuicConfig>) -> Self
Available on non-wasm_browser only.
pub fn quic_config(self, quic_config: Option<QuicConfig>) -> Self
wasm_browser only.Enable quic probes
Sourcepub fn icmp_v4(self, enable: bool) -> Self
Available on non-wasm_browser only.
pub fn icmp_v4(self, enable: bool) -> Self
wasm_browser only.Enable or disable icmp_v4 probe
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