Crate external_ip

Source
Expand description

Crate to figure out the system external IP

Structs§

Consensus
Consensus system that aggregates the various sources of information and returns the most common reply
ConsensusBuilder
Consensus builder
DNSSource
DNS Source of the external ip
HTTPSource
HTTP(s) Source of the external ip
HTTPSourceBuilder
IGD
IGD Source of the external ip

Enums§

Error
Family
IP Address family to try to resolve for
Policy
Policies for Consensus resolution
QueryType

Traits§

Source
Interface for any kind of external ip source

Functions§

get_dns_sources
Returns a collection of DNS sources to use to retrieve the external ip
get_http_sources
Returns a collection of HTTP(s) sources to use to retrieve the external ip
get_ipDeprecated
For ease of use a single async function is enough to obtain the IP trying with all the default sources enabled.
get_ipv4
For ease of use a single async function is enough to obtain the IPv4 trying with all the default sources enabled.
get_ipv6
For ease of use a single async function is enough to obtain the IPv6 trying with all the default sources enabled.
get_sources
Returns a collection of all possible sources

Type Aliases§

IpFuture
IpResult
Sources
Type alias for easier usage of the library