fast-nat 1.0.0

An OSI layer 3 Network Address Table built for speed
Documentation
1
2
3
4
5
6
7
8
9
use std::net::Ipv4Addr;

#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("Ipv4 address does not belong to the NAT pool: {0}")]
    InvalidIpv4Address(Ipv4Addr),
    #[error("IPv4 pool exhausted")]
    Ipv4PoolExhausted,
}