1use std::net::Ipv4Addr; 2 3#[derive(Debug, thiserror::Error)] 4pub enum Error { 5 #[error("Ipv4 address does not belong to the NAT pool: {0}")] 6 InvalidIpv4Address(Ipv4Addr), 7 #[error("IPv4 pool exhausted")] 8 Ipv4PoolExhausted, 9}