Module restriction

Source
Expand description

Define different restrictions that can be applied to relays.

Structs§

RelayExclusion
A set of relays that we must not use when picking a given relays.
RelayList 🔒
Helper: wraps Vec[Relay], but implements Debug.
RelayRestriction
A restriction that we use when picking relays.

Enums§

RestrictionInner 🔒
Enumeration of possible RelayRestrictions.

Functions§

relay_has_addr_in_set 🔒
Return true if relay has at least one address matching at least one member of patterns.
relays_in_same_extended_family 🔒
Return true if r1 and r2 are in the same “extended” family, considering both explicitly declared families and subnet-based extended families.