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.
Re-exportsยง
use crate::GuardMgrInner;๐use crate::pending::GuardStatus;๐use crate::pending::RequestId;๐use futures::channel::mpsc;๐use futures::stream::StreamExt;๐use tor_proto::ClockSkew;๐use tracing::instrument;๐use tracing::instrument;๐use std::sync::Mutex;๐use std::sync::Weak;๐
Enumsยง
- Msg ๐
- A message sent by to the
report_status_events()task.
Functionsยง
- keep_
bridge_ ๐descs_ updated - 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.