Module bridgedesc

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

BridgeDescMgr - downloads and caches bridges’ router descriptors

Modules§

mockable 🔒
Private module which seals Mockable by containing MockableAPI

Structs§

BridgeDescDownloadConfig
Configuration for the BridgeDescMgr
BridgeDescMgr
Downloader and cache for bridges’ router descriptors
Downloaded 🔒
If download was successful, what we obtained
JoinHandle 🔒
Dummy task join handle
Manager 🔒
The actual manager.
QueuedEntry 🔒
Entry in queued
RefetchEntry 🔒
Entry in one of the *_schedules
RunningInfo 🔒
Value of the entry in running
State 🔒
State: our downloaded descriptors (cache), and records of what we’re doing
StateGuard 🔒
Writeable reference to State, entitling the holder to disrupt liveness properties.

Enums§

Dormancy
Active vs dormant state, as far as the bridge descriptor manager is concerned
Error
An error which occurred trying to obtain the descriptor for a particular bridge
StartupError
Error which occurs during bridge descriptor manager startup

Traits§

Mockable
Mockable internal methods for within the BridgeDescMgr

Functions§

process_document 🔒
Processes and analyses a textual descriptor document into a Downloaded
timeout_task 🔒
Task which waits for the timeout, and requeues bridges that need to be refetched

Type Aliases§

BridgeKey 🔒
The key we use in all our data structures