Module daemon

Source
Expand description

Implement background tasks used by guard managers.

These background tasks keep a weak reference to the GuardMgrInner and use that to notice when they should shut down.

Enums§

Msg 🔒
A message sent by to the report_status_events() task.

Functions§

keep_bridge_descs_updated 🔒 bridge-client
Background task to keep a guard manager up-to-date with a given bridge descriptor provider.
keep_netdir_updated 🔒
Background task to keep a guard manager up-to-date with a given network directory provider.
report_status_events 🔒
Background task: wait for messages about guard statuses, and tell a guard manager about them. Runs indefinitely.
run_periodic 🔒
Background task to run periodic events on the guard manager.