(&self, protocol: &str, port: u16)
| 115 | |
| 116 | impl PortRange { |
| 117 | pub fn contains(&self, protocol: &str, port: u16) -> bool { |
| 118 | self.protocol.as_str() == protocol && port >= self.from && port <= self.to |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | #[derive(Debug, Clone, Deserialize)] |
no test coverage detected