pub struct DirectoryServiceConfig {
pub hostname_file: Option<String>,
pub bind_addr: Option<String>,
}Expand description
Directory-mode onion service configuration.
In directory mode, Tor manages the onion service via HiddenServiceDir
in torrc. FIPS reads the .onion address from the hostname file and
binds a local TCP listener for Tor to forward inbound connections to.
This mode requires no control port and enables Tor’s Sandbox 1.
Fields§
§hostname_file: Option<String>Path to the Tor-managed hostname file containing the .onion address. Defaults to “/var/lib/tor/fips_onion_service/hostname”.
bind_addr: Option<String>Local bind address for the listener that Tor forwards inbound
connections to. Must match the target in torrc’s HiddenServicePort.
Defaults to “127.0.0.1:8443”.
Implementations§
Trait Implementations§
Source§impl Clone for DirectoryServiceConfig
impl Clone for DirectoryServiceConfig
Source§fn clone(&self) -> DirectoryServiceConfig
fn clone(&self) -> DirectoryServiceConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DirectoryServiceConfig
impl Debug for DirectoryServiceConfig
Source§impl Default for DirectoryServiceConfig
impl Default for DirectoryServiceConfig
Source§fn default() -> DirectoryServiceConfig
fn default() -> DirectoryServiceConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DirectoryServiceConfig
impl<'de> Deserialize<'de> for DirectoryServiceConfig
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 DirectoryServiceConfig
impl RefUnwindSafe for DirectoryServiceConfig
impl Send for DirectoryServiceConfig
impl Sync for DirectoryServiceConfig
impl Unpin for DirectoryServiceConfig
impl UnsafeUnpin for DirectoryServiceConfig
impl UnwindSafe for DirectoryServiceConfig
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> 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>
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