Expand description
An internal pool object that we use to implement HsCircPool.
Structsยง
- Circs
ToLaunch ๐ - The circuits we need to launch.
- ForLaunch ๐
- A type of circuit we would like to launch.
- HsCirc
Prefs ๐ - Preferences for what kind of circuit to select from the pool.
- Pool ๐
- A collection of circuits used to fulfil onion-service-related requests.
Constantsยง
- DEFAULT_
GUARDED_ ๐STEM_ TARGET - Our default (and minimum) target GUARDED pool size.
- DEFAULT_
NAIVE_ ๐STEM_ TARGET - Our default (and minimum) target NAIVE pool size.
- MAX_
GUARDED_ ๐STEM_ TARGET - Our maximum target GUARDED pool size. We will never let our GUARDED target grow above this value.
- MAX_
NAIVE_ ๐STEM_ TARGET - Our maximum target NAIVE pool size. We will never let our NAIVE target grow above this value.
Functionsยง
- random_
idx_ ๐where - Helper: find a random item
eltinslicesuch thatpredicate(elt)is true. Return the index of that item.