Expand description
Asynchronous library for retrieving IP address information
For retrieval of a single address, simply use get_ip
and set
appropriate parameters.
In case a finer-grained control over the source of addresses is required,
individual Providers
on which get_ip
is based can be found in gip
(for global) and hostip
(for local).
Module libc_getips
contains a low-level function to receive all addresses
directly from the interfaces/adapters.
Modules§
- gip
- Implementations of
Provider
that receive global IP addresses from online services. This is an asynchronous rewrite of dalance/gip. - hostip
- Implementations of
Provider
that receive local IP addresses of the machine fromlibc
APIs and command-line helper programs (if available). - libc_
getips - Receive IP addresses of NICs with
libc
APIs.
Enums§
- Error
- Error type of IP retrieval methods.
- IpScope
- Scope of the IP to be received.
- IpType
- Type of global address.
Traits§
- Provider
- Any IP Provider.
Functions§
- get_ip
- Receive a IP address of family
ip_type
that has a scope ofip_scope
on an interface namednic
.
Type Aliases§
- Result
- A
Result
alias where theErr
variant isgetip::Error
.