diplonat/src/messages.rs

15 lines
250 B
Rust
Raw Normal View History

2020-05-22 10:25:44 +00:00
#[derive(Debug, Clone)]
2020-05-22 14:27:43 +00:00
pub struct PublicExposedPorts {
pub tcp_ports: Vec<u16>,
pub udp_ports: Vec<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: Vec::new(),
udp_ports: Vec::new()
}
}
}