Module net_declare::net
source · Expand description
Redeclaration of macros to generate net_types
types.
Macros§
- Declares a [
net_types::ip::IpAddr
] from a parsable IP address (either V4 or V6) string. - Declares a [
net_types::ip::Ipv4Addr
] from a parsable IPv4 address string. - Declares a [
net_types::ip::Ipv6Addr
] from a parsable IPv6 address string. - Declares a [
net_types::ethernet::Mac
] from a parsable MAC address in the formaa:bb:cc:dd:ee:ff
. - Declares a [
net_types::ip::PrefixLength<Ipv4>
] from an integer literal. - Declares a [
net_types::ip::PrefixLength<Ipv6>
] from an integer literal. - Declares a [
net_types::ip::Subnet<Ipv4Addr>
] from a parsable IPv4 CIDR address string. - Declares a [
net_types::ip::Subnet<Ipv6Addr>
] from a parsable IPv6 CIDR address string.