use std::collections::HashSet;
#[allow(clippy::exhaustive_structs)]
pub struct RelaySelectionConfig<'a> {
pub long_lived_ports: &'a HashSet<u16>,
pub subnet_config: tor_netdir::SubnetConfig,
}
impl<'a> RelaySelectionConfig<'a> {
pub(crate) fn port_requires_stable_flag(&self, port: u16) -> bool {
self.long_lived_ports.contains(&port)
}
}