Crate ipnetwork[−][src]
The ipnetwork crate provides a set of APIs to work with IP CIDRs in
Rust. Implementation for IPv4 is more or less stable, IPv6 implementation
is still WIP.
Structs
| Ipv4Network | Represents a network range where the IP addresses are of v4 |
| Ipv6Network | Represents a network range where the IP addresses are of v6 |
Enums
| IpNetwork | Represents a generic network range. This type can have two variants: the v4 and the v6 case. |
| IpNetworkError | Represents a bunch of errors that can occur while working with a |
| NetworkSize | Represents a generic network size. For IPv4, the max size is a u32 and for IPv6, it is a u128 |
Functions
| ip_mask_to_prefix | Converts a |
| ipv4_mask_to_prefix | Converts a |
| ipv6_mask_to_prefix | Converts a |