2020-05-24 18:40:49 +00:00
|
|
|
use std::collections::HashSet;
|
|
|
|
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
2020-05-22 14:27:43 +00:00
|
|
|
pub struct PublicExposedPorts {
|
2020-05-24 18:40:49 +00:00
|
|
|
pub tcp_ports: HashSet<u16>,
|
2021-09-11 14:34:03 +00:00
|
|
|
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 {
|
2020-05-24 18:40:49 +00:00
|
|
|
tcp_ports: HashSet::new(),
|
2021-09-11 14:34:03 +00:00
|
|
|
udp_ports: HashSet::new(),
|
2021-12-25 18:19:19 +00:00
|
|
|
};
|
2020-05-23 13:38:08 +00:00
|
|
|
}
|
|
|
|
}
|