Function tor_netdir::testnet::construct_custom_netdir_with_params

source ยท
pub fn construct_custom_netdir_with_params<F, P, PK>(
    func: F,
    params: P,
    lifetime: Option<Lifetime>
) -> BuildResult<PartialNetDir>
where F: FnMut(usize, &mut NodeBuilders), P: IntoIterator<Item = (PK, i32)>, PK: Into<String>,
Available on crate feature testing only.
Expand description

As construct_custom_network(), but return a PartialNetDir, and allow network parameter customisation.