Expand description
Main implementation of the connection functionality
MacrosΒ§
- Data
Tunnel π - Given
R, M
whereM: MocksForConnect<M>
, expand to the mockableClientCirc
StructsΒ§
- Context π
- Common context for a single request to connect to a hidden service
- Data
- Information about a hidden service, including our connection history
- Introduced π
- Details of an apparently-successful INTRODUCE exchange
- IptExperience π
- How things went last time we tried to use this introduction point
- IptSort
Key π - Sort key for an introduction point, for selecting the best IPTs to try first
- Relay
IdFor πExperience - Lookup key for looking up and recording our IPT use experiences
- Rendezvous π
- Details of an established rendezvous point
- Usable
Intro πPt - Details of an apparently-useable introduction point
EnumsΒ§
- IptSort
KeyOutcome π - Component of the
IptSortKey
representing outcome of our last attempt, if any
ConstantsΒ§
- HOPS π
- Number of hops in our hsdir, introduction, and rendezvous circuits
TraitsΒ§
- Mockable
Circ πPool - Mock for
HsCircPool
- Mockable
Client πData - Mock for onion service client data tunnel.
- Mockable
Client πDir - Mock for onion service client directory tunnel.
- Mockable
Client πIntro - Mock for onion service client introduction tunnel.
- Mocks
ForConnect π - Mocks used for testing
connect.rs
FunctionsΒ§
- connect π
- Actually make a HS connection, updating our recorded state as necessary
Type AliasesΒ§
- Data
HsDesc π - Part of
Data
that relates to the HS descriptor - Data
Ipts π - Part of
Data
that relates to our information about introduction points - IptSort
Rand π - Random value used as part of IPT selection