Module net_declare::std

source ·
Expand description

Redeclaration of macros to generate std types.

Macros§

  • Declares an [std::net::IpAddr] from a parsable IP address (either V4 or V6) string.
  • Declares an [std::net::Ipv4Addr] from a parsable IPv4 address string.
  • Declares an [std::net::Ipv6Addr] from a parsable IPv6 address string.
  • Declares an [std::net::SocketAddr] from a parsable IP address + port string (either V4 or V6).
  • Declares an [std::net::SocketAddrV4] from a parsable IPv4 address + port in the form addr:port.
  • Declares an [std::net::SocketAddrV6] from a parsable IPv6 address + port in the form [addr]:port.