Available on crate feature
hs-common
only.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
elt
inslice
such thatpredicate(elt)
is true. Return the index of that item.