Enum tor_dirmgr::DocId [−][src]
#[non_exhaustive]
pub enum DocId {
LatestConsensus {
flavor: ConsensusFlavor,
cache_usage: CacheUsage,
},
AuthCert(AuthCertKeyIds),
Microdesc(MdDigest),
}
Expand description
The identity of a single document, in enough detail to load it from storage.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LatestConsensus
Fields
flavor: ConsensusFlavor
The flavor of consensus to request.
A request for the most recent consensus document.
AuthCert(AuthCertKeyIds)
Tuple Fields
A request for an authority certificate, by the SHA1 digests of its identity key and signing key.
Microdesc(MdDigest)
Tuple Fields
0: MdDigest
A request for a single microdescriptor, by SHA256 digest.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DocId
impl UnwindSafe for DocId
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more