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§
- Bridge
Desc Download Config - Configuration for the
BridgeDescMgr
- Bridge
Desc Mgr - Downloader and cache for bridges’ router descriptors
- Downloaded 🔒
- If download was successful, what we obtained
- Join
Handle 🔒 - Dummy task join handle
- Manager 🔒
- The actual manager.
- Queued
Entry 🔒 - Entry in
queued
- Refetch
Entry 🔒 - Entry in one of the
*_schedule
s - Running
Info 🔒 - Value of the entry in
running
- State 🔒
- State: our downloaded descriptors (cache), and records of what we’re doing
- State
Guard 🔒 - 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
- Startup
Error - 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§
- Bridge
Key 🔒 - The key we use in all our data structures