mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 13:11:31 +00:00
22 lines
353 B
Rust
22 lines
353 B
Rust
use std::collections::HashMap;
|
|
|
|
use super::{handler::NatHandler, key::NatKey};
|
|
|
|
pub struct NatTable {
|
|
pub inner: HashMap<NatKey, Box<dyn NatHandler>>,
|
|
}
|
|
|
|
impl Default for NatTable {
|
|
fn default() -> Self {
|
|
Self::new()
|
|
}
|
|
}
|
|
|
|
impl NatTable {
|
|
pub fn new() -> Self {
|
|
Self {
|
|
inner: HashMap::new(),
|
|
}
|
|
}
|
|
}
|