Struct arti_client::config::TorClientConfig
source · [−]pub struct TorClientConfig {
pub system: SystemConfig,
/* private fields */
}
Expand description
A configuration used to bootstrap a TorClient
.
In order to connect to the Tor network, Arti needs to know a few
well-known directory caches on the network, and the public keys of the
network’s directory authorities. It also needs a place on disk to
store persistent state and cached directory information. (See StorageConfig
for default directories.)
Most users will create a TorClientConfig by running
TorClientConfig::default
.
If you need to override the locations where Arti stores its
information, you can make a TorClientConfig with
TorClientConfigBuilder::from_directories
.
Finally, you can get fine-grained control over the members of a a
TorClientConfig using TorClientConfigBuilder
.
⚠ Stability Warning ⚠
The design of this structure, and of the configuration system for Arti, is likely to change significantly before the release of Arti 1.0.0. The layout of options within this structure is also likely to change. For more information see ticket #285.
Fields
system: SystemConfig
Information about system resources
Implementations
sourceimpl TorClientConfig
impl TorClientConfig
sourcepub fn builder() -> TorClientConfigBuilder
pub fn builder() -> TorClientConfigBuilder
Return a new TorClientConfigBuilder.
Trait Implementations
sourceimpl Clone for TorClientConfig
impl Clone for TorClientConfig
sourcefn clone(&self) -> TorClientConfig
fn clone(&self) -> TorClientConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TorClientConfig
impl Debug for TorClientConfig
sourceimpl Default for TorClientConfig
impl Default for TorClientConfig
sourceimpl From<TorClientConfig> for TorClientConfigBuilder
impl From<TorClientConfig> for TorClientConfigBuilder
sourcefn from(cfg: TorClientConfig) -> TorClientConfigBuilder
fn from(cfg: TorClientConfig) -> TorClientConfigBuilder
Performs the conversion.
sourceimpl PartialEq<TorClientConfig> for TorClientConfig
impl PartialEq<TorClientConfig> for TorClientConfig
sourcefn eq(&self, other: &TorClientConfig) -> bool
fn eq(&self, other: &TorClientConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TorClientConfig) -> bool
fn ne(&self, other: &TorClientConfig) -> bool
This method tests for !=
.
impl Eq for TorClientConfig
impl StructuralEq for TorClientConfig
impl StructuralPartialEq for TorClientConfig
Auto Trait Implementations
impl RefUnwindSafe for TorClientConfig
impl Send for TorClientConfig
impl Sync for TorClientConfig
impl Unpin for TorClientConfig
impl UnwindSafe for TorClientConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more