#[non_exhaustive]pub struct NetworkConfig { /* private fields */ }Expand description
Configuration information about the Tor network itself; used as part of Arti’s configuration.
This type is immutable once constructed. To make one, use
NetworkConfigBuilder, or deserialize it from a string.
Implementations§
Source§impl NetworkConfig
impl NetworkConfig
Sourcepub fn fallback_caches(&self) -> &FallbackList
pub fn fallback_caches(&self) -> &FallbackList
List of locations to look in when downloading directory information, if we don’t actually have a directory yet.
(If we do have a cached directory, we use directory caches listed there instead.)
This section can be changed in a running Arti client. Doing so will affect future download attempts only.
The default is to use a set of compiled-in fallback directories, whose addresses and public keys are shipped as part of the Arti source code.
List of directory authorities which we expect to perform various operations affecting the overall Tor network.
(If none are specified, we use a default list of authorities shipped with Arti.)
This section cannot be changed in a running Arti client.
The default is to use a set of compiled-in authorities, whose identities and public keys are shipped as part of the Arti source code.
Source§impl NetworkConfig
impl NetworkConfig
Sourcepub fn builder() -> NetworkConfigBuilder
pub fn builder() -> NetworkConfigBuilder
Returns a fresh, default, builder
Trait Implementations§
Source§impl Clone for NetworkConfig
impl Clone for NetworkConfig
Source§fn clone(&self) -> NetworkConfig
fn clone(&self) -> NetworkConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NetworkConfig
impl Debug for NetworkConfig
Source§impl Default for NetworkConfig
impl Default for NetworkConfig
Source§impl PartialEq for NetworkConfig
impl PartialEq for NetworkConfig
impl Eq for NetworkConfig
impl StructuralPartialEq for NetworkConfig
Auto Trait Implementations§
impl Freeze for NetworkConfig
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnwindSafe for NetworkConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more