Trait tor_netdir::MdReceiver[][src]

pub trait MdReceiver {
    fn missing_microdescs(&self) -> Box<dyn Iterator<Item = &MdDigest>>;
fn add_microdesc(&mut self, md: Microdesc) -> bool; }
Expand description

A partial or full network directory that we can download microdescriptors for.

Required methods

Return an iterator over the digests for all of the microdescriptors that this netdir is missing.

Add a microdescriptor to this netdir, if it was wanted.

Return true if it was indeed wanted.

Implementors