Skip to content
Snippets Groups Projects
Commit cc99efb7 authored by Ian Jackson's avatar Ian Jackson
Browse files

NetParams: Document its role as a validated config parameter

parent 3a0da9e8
No related branches found
No related tags found
No related merge requests found
......@@ -250,9 +250,6 @@ pub struct TorClientConfig {
/// Facility to override network parameters from the values set in the
/// consensus.
//
// TODO: This field seems anomalous and should perhaps be changed somehow.
// Maybe NetParams<i32> ought to derive Builder.
#[builder(
sub_builder,
field(
......
......@@ -143,6 +143,9 @@ impl Lifetime {
/// These are used to describe current settings for the Tor network,
/// current weighting parameters for path selection, and so on. They're
/// encoded with a space-separated K=V format.
///
/// A `NetParams<i32>` is part of the validated directory manager configuraton,
/// where it is built (in the builder-pattern sense) from a transparent HashMap.
#[derive(Debug, Clone, Default, Eq, PartialEq)]
pub struct NetParams<T> {
/// Map from keys to values.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment