Skip to main content

Module bridgedesc

Module bridgedesc 

Source
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