Struct arti::cfg::ArtiConfig
source · pub struct ArtiConfig { /* private fields */ }
Expand description
Structure to hold Arti’s configuration options, whether from a
configuration file or the command line.
These options are declared in a public crate outside of arti
so that other
applications can parse and use them, if desired. If you’re only embedding
arti via arti-client
, and you don’t want to use Arti’s configuration
format, use arti_client::TorClientConfig
instead.
By default, Arti will run using the default Tor network, store state and cache information to a per-user set of directories shared by all that user’s applications, and run a SOCKS client on a local port.
NOTE: These are NOT the final options or their final layout. Expect NO stability here.
Implementations§
source§impl ArtiConfig
impl ArtiConfig
sourcepub fn builder() -> ArtiConfigBuilder
pub fn builder() -> ArtiConfigBuilder
Returns a fresh, default, builder
source§impl ArtiConfig
impl ArtiConfig
sourcepub fn application(&self) -> &ApplicationConfig
pub fn application(&self) -> &ApplicationConfig
Return the ApplicationConfig
for this configuration.
sourcepub fn logging(&self) -> &LoggingConfig
pub fn logging(&self) -> &LoggingConfig
Return the LoggingConfig
for this configuration.
sourcepub fn proxy(&self) -> &ProxyConfig
pub fn proxy(&self) -> &ProxyConfig
Return the ProxyConfig
for this configuration.
Trait Implementations§
source§impl Clone for ArtiConfig
impl Clone for ArtiConfig
source§fn clone(&self) -> ArtiConfig
fn clone(&self) -> ArtiConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ArtiConfig
impl Debug for ArtiConfig
source§impl Default for ArtiConfig
impl Default for ArtiConfig
source§impl PartialEq<ArtiConfig> for ArtiConfig
impl PartialEq<ArtiConfig> for ArtiConfig
source§fn eq(&self, other: &ArtiConfig) -> bool
fn eq(&self, other: &ArtiConfig) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TopLevel for ArtiConfig
impl TopLevel for ArtiConfig
§type Builder = ArtiConfigBuilder
type Builder = ArtiConfigBuilder
source§const DEPRECATED_KEYS: &'static [&'static str] = _
const DEPRECATED_KEYS: &'static [&'static str] = _
impl Eq for ArtiConfig
impl StructuralEq for ArtiConfig
impl StructuralPartialEq for ArtiConfig
Auto Trait Implementations§
impl RefUnwindSafe for ArtiConfig
impl Send for ArtiConfig
impl Sync for ArtiConfig
impl Unpin for ArtiConfig
impl UnwindSafe for ArtiConfig
Blanket Implementations§
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.