Module hspool

Source
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§

HsCircPool
An object to provide circuits for implementing onion services.
HsCircPoolInner 🔒
An object to provide circuits for implementing onion services.
HsCircStem 🔒
A hidden service circuit stem.
Inner 🔒
The mutable state of an HsCircPool

Enums§

HsCircKind
The (onion-service-related) purpose for which a given circuit is going to be used.
HsCircStemKind 🔒
A kind of hidden service circuit stem.
NoRelayForPathEnt 🔒
A possible error condition when trying to look up a PathEntry

Traits§

HsCircPoolConfig
Configuration for an HsCircPool.

Functions§

circuit_compatible_with_target 🔒
Return true if we can extend a pre-built circuit circ to target.
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 circ to target.