Module connect

Source
Expand description

Main implementation of the connection functionality

Macros§

ClientCirc 🔒
Given R, M where M: MocksForConnect<M>, expand to the mockable ClientCirc

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
IptSortKey 🔒
Sort key for an introduction point, for selecting the best IPTs to try first
RelayIdForExperience 🔒
Lookup key for looking up and recording our IPT use experiences
Rendezvous 🔒
Details of an established rendezvous point
UsableIntroPt 🔒
Details of an apparently-useable introduction point

Enums§

IptSortKeyOutcome 🔒
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§

MockableCircPool 🔒
Mock for HsCircPool
MockableClientCirc 🔒
Mock for ClientCirc
MocksForConnect 🔒
Mocks used for testing connect.rs

Functions§

connect 🔒
Actually make a HS connection, updating our recorded state as necessary

Type Aliases§

DataHsDesc 🔒
Part of Data that relates to the HS descriptor
DataIpts 🔒
Part of Data that relates to our information about introduction points
IptSortRand 🔒
Random value used as part of IPT selection