Skip to main content

Module event

Module event 

Source
Expand description

Code for notifying other modules about changes in the directory.

Re-exportsΒ§

use std::fmt; πŸ”’
use std::marker::PhantomData; πŸ”’
use std::pin::Pin; πŸ”’
use std::sync::Arc; πŸ”’
use std::sync::atomic::AtomicUsize; πŸ”’
use std::sync::atomic::Ordering; πŸ”’
use std::task::Poll; πŸ”’
use std::time::SystemTime; πŸ”’
use educe::Educe; πŸ”’
use futures::Future; πŸ”’
use futures::StreamExt; πŸ”’
use futures::stream::Stream; πŸ”’
use itertools::chain; πŸ”’
use itertools::chain; πŸ”’
use paste::paste; πŸ”’
use time::OffsetDateTime; πŸ”’
use tor_basic_utils::skip_fmt; πŸ”’
use tor_netdir::DirEvent; πŸ”’
use tor_netdoc::doc::netstatus; πŸ”’
use tor_guardmgr::bridge::BridgeDescEvent; πŸ”’
use crate::bootstrap::AttemptId; πŸ”’

MacrosΒ§

impl_FlagEvent πŸ”’
Implements FlagEvent for a C-like enum

StructsΒ§

DirBootstrapEvents
A stream of DirBootstrapStatus events.
DirBootstrapStatus
Description of the directory manager’s current bootstrapping status.
DirStatus πŸ”’
The status for a single directory.
FlagListener πŸ”’
A Stream that returns a series of event FlagEvents broadcast by a FlagPublisher.
FlagPublisher πŸ”’
A publisher that broadcasts flag-level events to multiple subscribers.
Inner πŸ”’
Shared structure to implement FlagPublisher and FlagListener.
StatusEntry πŸ”’
The status and identifier of a single attempt to download a full directory.

EnumsΒ§

DirBlockage
A reported diagnostic for what kind of trouble we’ve seen while trying to bootstrap a directory.
DirProgress πŸ”’
How much progress have we made in downloading a given directory?
StatusEnum πŸ”’
The contents of a DirBootstrapStatus.

TraitsΒ§

FlagEvent πŸ”’
A trait to indicate something that can be published with FlagPublisher.