pub trait MdReceiver {
    // Required methods
    fn missing_microdescs(&self) -> Box<dyn Iterator<Item = &MdDigest> + '_>;
    fn add_microdesc(&mut self, md: Microdesc) -> bool;
    fn n_missing(&self) -> usize;
}
Expand description

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

Required Methods§

source

fn missing_microdescs(&self) -> Box<dyn Iterator<Item = &MdDigest> + '_>

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

source

fn add_microdesc(&mut self, md: Microdesc) -> bool

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

Return true if it was indeed wanted.

source

fn n_missing(&self) -> usize

Return the number of missing microdescriptors.

Implementors§