kratanet/nat/table.rs
1use std::collections::HashMap;
2
3use super::{handler::NatHandler, key::NatKey};
4
5pub struct NatTable {
6 pub inner: HashMap<NatKey, Box<dyn NatHandler>>,
7}
8
9impl Default for NatTable {
10 fn default() -> Self {
11 Self::new()
12 }
13}
14
15impl NatTable {
16 pub fn new() -> Self {
17 Self {
18 inner: HashMap::new(),
19 }
20 }
21}