Module tor_dirmgr::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 containingMockableAPI
Structs§
- Configuration for the
BridgeDescMgr
- Downloader and cache for bridges’ router descriptors
- If download was successful, what we obtained
- Dummy task join handle
- Manager 🔒The actual manager.
- Entry in
queued
- Entry in one of the
*_schedule
s - Value of the entry in
running
- State 🔒State: our downloaded descriptors (cache), and records of what we’re doing
- Writeable reference to
State
, entitling the holder to disrupt liveness properties.
Enums§
- Active vs dormant state, as far as the bridge descriptor manager is concerned
- An error which occurred trying to obtain the descriptor for a particular bridge
- Error which occurs during bridge descriptor manager startup
Traits§
- Mockable internal methods for within the
BridgeDescMgr
Functions§
- Processes and analyses a textual descriptor document into a
Downloaded
- Task which waits for the timeout, and requeues bridges that need to be refetched
Type Aliases§
- The key we use in all our data structures