blob: 39ab282c5a8b043e36faf062e2875fe45a04f119 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
//! Configuration logic for `HsCircPool`.
use tor_basic_utils::define_accessor_trait;
define_accessor_trait! {
/// Configuration for an `HsCircPool`.
///
/// If the `HsCircPool` gains new configurabilities, this trait will gain additional
/// supertraits, as an API break.
///
/// Prefer to use `TorClientConfig`, which will always implement this trait.
//
// This arrangement is very like that for `CircMgrConfig`.
pub trait HsCircPoolConfig {
+
// TODO HS-VANGUARDS: ideally this would be defined in the same way as `path_rules`,
// `circuit_timing`, etc., but define_accessor_trait unconditionally adds
// AsRef<VanguardsConfig> as a supertrait, which can't be cfg'd behind
// the vanguards feature.
/// Access the field
#[cfg(all(feature = "vanguards", feature = "hs-common"))]
fn vanguard_config(&self) -> &tor_guardmgr::vanguards::VanguardConfig;
}
}
|