diplonat/src/messages.rs

17 lines
315 B
Rust
Raw Normal View History

use std::collections::HashSet;
#[derive(Debug, Clone, PartialEq, Eq)]
2020-05-22 14:27:43 +00:00
pub struct PublicExposedPorts {
pub tcp_ports: HashSet<u16>,
pub udp_ports: HashSet<u16>,
2020-05-22 10:25:44 +00:00
}
2020-05-23 13:38:08 +00:00
impl PublicExposedPorts {
pub fn new() -> Self {
return Self {
tcp_ports: HashSet::new(),
udp_ports: HashSet::new(),
}
2020-05-23 13:38:08 +00:00
}
}