Settings
Help

Module connect

Module connect 

Source
Expand description

Main implementation of the connection functionality

MacrosΒ§

DataTunnel πŸ”’
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
MockableClientData πŸ”’
Mock for onion service client data tunnel.
MockableClientDir πŸ”’
Mock for onion service client directory tunnel.
MockableClientIntro πŸ”’
Mock for onion service client introduction tunnel.
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