pub fn parse_ip_mapping(s: &str) -> Result<IpMapping, TransformError>Expand description
Parse "OLD_IP=NEW_IP" into an IpMapping.
Both sides must be valid IP addresses. Cross-family mappings (IPv4↔IPv6) are supported and will cause the entire Ethernet payload to be re-framed when applied; see the module-level documentation for details.
§Errors
TransformError::InvalidMapping — format wrong or address unparsable.