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
10
11
12
13
use std::time::Duration;

/// Describes a possible timeout for a mapping
#[derive(Debug, Clone, Copy)]
pub enum MaybeTimeout {
    /// Indicates that a mapping should never time out
    Never,
    /// Indicates that a mapping should time out after a given duration
    After {
        duration: Duration,
        start: std::time::Instant,
    },
}