Available on crate feature
network only.Enumsยง
- DnsResolution
Error - An error returned by
resolve_address.
Staticsยง
- V4_
NON_ ๐GLOBAL - IPv4 CIDR blocks that are not globally routable. Anything outside this set is treated as a public address.
- V6_
NON_ ๐GLOBAL - IPv6 CIDR blocks that are not globally routable.
Functionsยง
- ensure_
url_ ip_ global - If
urlโs host is an IP literal, validates that it is a globally routable address, returningDnsResolutionError::PrivateAddressif not. Hostnames and URLs without a host are passed through; they are expected to be validated by a connector-level DNS resolver at connect time. - is_
global ๐ - is_
global_ ๐v4 - is_
global_ ๐v6 - resolve_
address - Resolves a host address and ensures it is a global address when
enforce_globalis set. This parameter is useful when connecting to user-defined unverified addresses.