pub struct RelaySelectionConfig<'a> {
pub long_lived_ports: &'a HashSet<u16>,
pub subnet_config: SubnetConfig,
}Expand description
Configuration object for building relay restrictions.
This object can affect the interpretation of various usages and restrictions.
Fields§
§long_lived_ports: &'a HashSet<u16>A set of ports that require Stable relays.
subnet_config: SubnetConfigConfiguration for which addresses are considered “too close” to share a circuit.
Auto Trait Implementations§
impl<'a> Freeze for RelaySelectionConfig<'a>
impl<'a> RefUnwindSafe for RelaySelectionConfig<'a>
impl<'a> Send for RelaySelectionConfig<'a>
impl<'a> Sync for RelaySelectionConfig<'a>
impl<'a> Unpin for RelaySelectionConfig<'a>
impl<'a> UnwindSafe for RelaySelectionConfig<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more