Expand description
Declare a general purpose “document ID type” for tracking which documents we want and which we have.
Re-exports§
use std::collections::HashMap;🔒use tracing::trace;🔒use crate::DocumentText;🔒use crate::storage::Store;🔒use tor_dirclient::request;🔒use tor_netdoc::doc::routerdesc::RdDigest;🔒use tor_netdoc::doc::authcert::AuthCertKeyIds;🔒use tor_netdoc::doc::microdesc::MdDigest;🔒use tor_netdoc::doc::netstatus::ConsensusFlavor;🔒
Enums§
- Cache
Usage - Description of how to start out a given bootstrap attempt.
- Client
Request 🔒 - A request for a specific kind of directory resource that a DirMgr can request.
- DocId
- The identity of a single document, in enough detail to load it from storage.
- DocQuery 🔒
- A group of DocIds that can be downloaded or loaded from the database together.
- DocType 🔒
- The underlying type of a DocId.
Functions§
- partition_
by_ 🔒type - Given a list of DocId, split them up into queries, by type.