pub trait DirFilter: Debug + Send + Sync {
    // Provided methods
    fn filter_consensus(
        &self,
        consensus: UncheckedMdConsensus
    ) -> Result<UncheckedMdConsensus> { ... }
    fn filter_md(&self, md: Microdesc) -> Result<Microdesc> { ... }
}
Available on crate feature dirfilter only.
Expand description

An object that can filter directory documents before they’re handled.

Instances of DirFilter can be used for testing, to modify directory data on-the-fly.

Provided Methods§

source

fn filter_consensus( &self, consensus: UncheckedMdConsensus ) -> Result<UncheckedMdConsensus>

Modify consensus in an unspecified way.

source

fn filter_md(&self, md: Microdesc) -> Result<Microdesc>

Modify md in an unspecified way.

Implementors§