mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-06 06:31:31 +00:00
krata: restructure packages for cleanliness
This commit is contained in:
21
crates/network/src/nat/table.rs
Normal file
21
crates/network/src/nat/table.rs
Normal file
@ -0,0 +1,21 @@
|
||||
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(),
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user