Crate tor_dirmgr
source · [−]Expand description
tor-dirmgr
: Code to fetch, store, and update Tor directory information.
Overview
This crate is part of Arti, a project to implement Tor in Rust.
In its current design, Tor requires a set of up-to-date authenticated directory documents in order to build multi-hop anonymized circuits through the network.
This directory manager crate is responsible for figuring out which directory information we lack, downloading what we’re missing, and keeping a cache of it on disk.
Compile-time features
mmap
(default) – Use memory mapping to reduce the memory load for
reading large directory objects from disk.
static
– Try to link with a static copy of sqlite3.
routerdesc
– (Incomplete) support for downloading and storing
router descriptors.
Re-exports
pub use authority::Authority;
pub use authority::AuthorityBuilder;
Modules
Information about directory authorities
Structs
A stream of DirBootstrapStatus
events.
Description of the directory manager’s current bootstrapping status.
A directory manager to download, fetch, and cache a Tor directory.
Configuration type for network directory operations.
Builder for DirMgrConfig
.
The status for a single directory.
A document returned by a directory manager.
Configuration for how many times to retry a download, with what frequency.
Configuration information for how exactly we download documents from the Tor directory caches.
Builder for DownloadScheduleConfig
.
A directory whose location ships with Tor (or arti), and which we can use for bootstrapping when we don’t know anything else about the network.
Builder for FallbackDir
.
Configuration information about the Tor network itself; used as part of Arti’s configuration.
Builder for NetworkConfig
.
Enums
An event that a DirMgr can broadcast to indicate that a change in the status of its directory.
The identity of a single document, in enough detail to load it from storage.
An error originated by the directory manager code
Type Definitions
A Result as returned by this crate.