pub struct TorConfig {
pub mode: Option<String>,
pub socks_proxy: Option<String>,
pub control: Option<String>,
pub cookie_auth: Option<bool>,
pub hidden_service: Option<TorHiddenServiceConfig>,
pub kubo: Option<TorKuboConfig>,
}Expand description
Tor integration configuration.
This controls how void routes network traffic and how it coordinates with external Tor and Kubo daemons.
Fields§
§mode: Option<String>Tor routing mode (off|external)
socks_proxy: Option<String>SOCKS proxy URL (e.g. socks5h://127.0.0.1:9050)
control: Option<String>Tor control endpoint (host:port)
Use Tor cookie authentication for control port access
Hidden service settings for exposing the P2P daemon
kubo: Option<TorKuboConfig>Kubo integration settings
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TorConfig
impl<'de> Deserialize<'de> for TorConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TorConfig
impl RefUnwindSafe for TorConfig
impl Send for TorConfig
impl Sync for TorConfig
impl Unpin for TorConfig
impl UnsafeUnpin for TorConfig
impl UnwindSafe for TorConfig
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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