Module diem_types::network_address
source · Modules
Structs
- A minimally parsed DNS name. We don’t really do any checking other than enforcing:
- Overview
Enums
- Possible errors when parsing a human-readable
NetworkAddress. - A single protocol in the
NetworkAddressprotocol stack.
Functions
- parse the
&[Protocol]into the"/dns/<domain>/tcp/<port>","/dns4/<domain>/tcp/<port>", or"/dns6/<domain>/tcp/<port>"prefix and unparsed&[Protocol]suffix. - parse the
&[Protocol]into the"/ln-handshake/<version>"prefix and unparsed&[Protocol]suffix. - parse the
&[Protocol]into the"/ip4/<addr>/tcp/<port>"or"/ip6/<addr>/tcp/<port>"prefix and unparsed&[Protocol]suffix. - parse the
&[Protocol]into the"/memory/<port>"prefix and unparsed&[Protocol]suffix. - parse the
&[Protocol]into the"/ln-noise-ik/<pubkey>"prefix and unparsed&[Protocol]suffix.