Module pool

Source
Available on crate feature hs-common only.
Expand description

An internal pool object that we use to implement HsCircPool.

Structs§

CircsToLaunch 🔒
The circuits we need to launch.
ForLaunch 🔒
A type of circuit we would like to launch.
HsCircPrefs 🔒
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 elt in slice such that predicate(elt) is true. Return the index of that item.