Available on crate feature
hs-common only.Expand description
Manage a pool of circuits for usage with onion services.
ModulesΒ§
- config π
- Configuration logic for
HsCircPool. - pool π
- An internal pool object that we use to implement HsCircPool.
StructsΒ§
- HsCirc
Pool - An object to provide circuits for implementing onion services.
- HsCirc
Pool πInner - An object to provide circuits for implementing onion services.
- HsCirc
Stem π - A hidden service circuit stem.
- Inner π
- The mutable state of an
HsCircPool
EnumsΒ§
- HsCirc
Kind - The (onion-service-related) purpose for which a given circuit is going to be used.
- HsCirc
Stem πKind - A kind of hidden service circuit stem.
- NoRelay
ForPath πEnt - A possible error condition when trying to look up a PathEntry
TraitsΒ§
- HsCirc
Pool Config - Configuration for an
HsCircPool.
FunctionsΒ§
- circuit_
compatible_ πwith_ target - Return true if we can extend a pre-built circuit
circtotarget. - circuit_
still_ πuseable - Return true if we can still use a given pre-build circuit.
- launch_
hs_ πcircuits_ as_ needed - Background task to launch onion circuits as needed.
- relay_
for_ πpath_ ent - Look up a relay in a netdir corresponding to
ent - remove_
unusable_ πcircuits - Background task to remove unusable circuits whenever the directory changes.
- vanguards_
circuit_ πcompatible_ with_ target - Return true if we can extend a pre-built vanguards circuit
circtotarget.