Module bridge

Source
Available on crate feature bridge-client only.
Expand description

Code to configure and manage a set of bridge relays.

A bridge relay, or “bridge” is a tor relay not listed as part of Tor directory, in order to prevent censors from blocking it. Instead, clients learn about bridges out-of-band, and contact them either directly or via a pluggable transport.

When a client is configured to use bridges, it uses them in place of its regular set of guards in building the first hop of its circuits.

Modules§

config 🔒
Configuration logic and types for bridges.
descs 🔒
Code for working with bridge descriptors.
relay 🔒
Implementation code to make a bridge something that we can connect to and use to relay traffic.

Structs§

BridgeConfig
A relay not listed on the main tor network, used for anticensorship.
BridgeConfigBuilder
Builder for a BridgeConfig.
BridgeDesc
A router descriptor that can be used to build circuits through a bridge.
BridgeRelay
The information about a Bridge that is necessary to connect to it and send it traffic.

Enums§

BridgeDescEvent
An event describing a change in a BridgeDescList.
BridgeParseError
Error when parsing a bridge line from a string

Traits§

BridgeDescError
An error caused while fetching bridge descriptors
BridgeDescProvider
Trait for an object that knows how to fetch bridge descriptors as needed.

Type Aliases§

BridgeDescList
A set of bridge descriptors, managed and modified by a BridgeDescProvider.