Expand description
Define different restrictions that can be applied to relays.
Structs§
- Relay
Exclusion - A set of relays that we must not use when picking a given relays.
- Relay
List 🔒 - Helper: wraps
Vec[Relay]
, but implements Debug. - Relay
Restriction - A restriction that we use when picking relays.
Enums§
- Restriction
Inner 🔒 - Enumeration of possible
RelayRestriction
s.
Functions§
- relay_
has_ 🔒addr_ in_ set - Return true if
relay
has at least one address matching at least one member ofpatterns
. - relays_
in_ 🔒same_ extended_ family - Return true if
r1
andr2
are in the same “extended” family, considering both explicitly declared families and subnet-based extended families.