Enum libtor::TorFlag[][src]

pub enum TorFlag {
    ConfigFile(String),
    PassphraseFD(u32),
    BandwidthRate(usizeSizeUnit),
    BandwidthBurst(usizeSizeUnit),
    DisableNetwork(TorBool),
    ControlPort(u16),
    ControlPortAuto,
    ControlPortAddress(TorAddress, DisplayOption<DisplayVec<ControlPortFlag, SpaceJoiner>>),
    ControlSocket(String),
    ControlSocketsGroupWritable(TorBool),
    HashedControlPassword(String),
    CookieAuthentication(TorBool),
    CookieAuthFile(String),
    CookieAuthFileGroupReadable(TorBool),
    ControlPortWriteToFile(String),
    ControlPortFileGroupReadable(TorBool),
    DataDirectory(String),
    DataDirectoryGroupReadable(TorBool),
    CacheDirectory(String),
    CacheDirectoryGroupReadable(String),
    HTTPSProxy(String),
    HTTPSProxyAuthenticator(StringString),
    Socks4Proxy(String),
    Socks5Proxy(String),
    Socks5ProxyUsername(String),
    Socks5ProxyPassword(String),
    UnixSocksGroupWritable(TorBool),
    KeepalivePeriod(usize),
    Log(LogLevel),
    LogTo(LogLevelLogDestination),
    LogExpanded(Vec<(Vec<(bool, LogDomain)>, LogLevel)>, LogDestination),
    LogMessageDomains(TorBool),
    LogTimeGranularity(usize),
    TruncateLogFile(TorBool),
    SyslogIdentityTag(String),
    AndroidIdentityTag(String),
    SafeLogging(TorBool),
    PidFile(String),
    ProtocolWarnings(TorBool),
    User(String),
    NoExec(TorBool),
    Bridge(StringStringString),
    ConnectionPadding(TorBool),
    ReducedConnectionPadding(TorBool),
    CircuitPadding(TorBool),
    ReducedCircuitPadding(TorBool),
    ExcludeNodes(DisplayVec<String, CommaJoiner>),
    ExcludeExitNodes(DisplayVec<String, CommaJoiner>),
    ExitNodes(DisplayVec<String, CommaJoiner>),
    MiddleNodes(DisplayVec<String, CommaJoiner>),
    EntryNodes(DisplayVec<String, CommaJoiner>),
    StrictNodes(TorBool),
    FascistFirewall(TorBool),
    FirewallPorts(DisplayVec<u16, CommaJoiner>),
    MapAddress(StringString),
    NewCircuitPeriod(usize),
    SocksPort(u16),
    SocksPortAuto,
    SocksPortAddress(TorAddress, DisplayOption<DisplayVec<SocksPortFlag, SpaceJoiner>>, DisplayOption<DisplayVec<SocksPortIsolationFlag, SpaceJoiner>>),
    SocksTimeout(usize),
    SafeSocks(TorBool),
    TestSocks(TorBool),
    UpdateBridgesFromAuthority(TorBool),
    UseBridges(TorBool),
    HiddenServiceDir(String),
    HiddenServicePort(TorAddress, DisplayOption<TorAddress>),
    HiddenServiceVersion(HiddenServiceVersion),
    HiddenServiceAuthorizeClient(HiddenServiceAuthType, DisplayVec<String, CommaJoiner>),
    HiddenServiceAllowUnknownPorts(TorBool),
    HiddenServiceMaxStreams(usize),
    HiddenServiceMaxStreamsCloseCircuit(TorBool),
    Custom(String),
    Quiet(),
    Hush(),
}

Enum that represents a subset of the options supported by Tor

Generally speaking, all the server-only features have not been mapped since this crate is targeted more to a client-like usage. Arbitrary flags can still be added using the TorFlag::Custom(String) variant.

Variants

ConfigFile(String)
PassphraseFD(u32)
BandwidthRate(usizeSizeUnit)
BandwidthBurst(usizeSizeUnit)
DisableNetwork(TorBool)
ControlPort(u16)
ControlPortAuto
ControlPortAddress(TorAddress, DisplayOption<DisplayVec<ControlPortFlag, SpaceJoiner>>)
ControlSocket(String)
ControlSocketsGroupWritable(TorBool)
HashedControlPassword(String)
CookieAuthentication(TorBool)
CookieAuthFile(String)
CookieAuthFileGroupReadable(TorBool)
ControlPortWriteToFile(String)
ControlPortFileGroupReadable(TorBool)
DataDirectory(String)
DataDirectoryGroupReadable(TorBool)
CacheDirectory(String)
CacheDirectoryGroupReadable(String)
HTTPSProxy(String)
HTTPSProxyAuthenticator(StringString)
Socks4Proxy(String)
Socks5Proxy(String)
Socks5ProxyUsername(String)
Socks5ProxyPassword(String)
UnixSocksGroupWritable(TorBool)
KeepalivePeriod(usize)
LogMessageDomains(TorBool)
LogTimeGranularity(usize)
TruncateLogFile(TorBool)
SyslogIdentityTag(String)
AndroidIdentityTag(String)
SafeLogging(TorBool)
PidFile(String)
ProtocolWarnings(TorBool)
User(String)
NoExec(TorBool)
Bridge(StringStringString)
ConnectionPadding(TorBool)
ReducedConnectionPadding(TorBool)
CircuitPadding(TorBool)
ReducedCircuitPadding(TorBool)
ExcludeNodes(DisplayVec<String, CommaJoiner>)
ExcludeExitNodes(DisplayVec<String, CommaJoiner>)
ExitNodes(DisplayVec<String, CommaJoiner>)
MiddleNodes(DisplayVec<String, CommaJoiner>)
EntryNodes(DisplayVec<String, CommaJoiner>)
StrictNodes(TorBool)
FascistFirewall(TorBool)
FirewallPorts(DisplayVec<u16, CommaJoiner>)
MapAddress(StringString)
NewCircuitPeriod(usize)
SocksPort(u16)
SocksPortAuto
SocksPortAddress(TorAddress, DisplayOption<DisplayVec<SocksPortFlag, SpaceJoiner>>, DisplayOption<DisplayVec<SocksPortIsolationFlag, SpaceJoiner>>)
SocksTimeout(usize)
SafeSocks(TorBool)
TestSocks(TorBool)
UpdateBridgesFromAuthority(TorBool)
UseBridges(TorBool)
HiddenServiceDir(String)
HiddenServicePort(TorAddress, DisplayOption<TorAddress>)
HiddenServiceVersion(HiddenServiceVersion)
HiddenServiceAuthorizeClient(HiddenServiceAuthType, DisplayVec<String, CommaJoiner>)
HiddenServiceAllowUnknownPorts(TorBool)
HiddenServiceMaxStreams(usize)
HiddenServiceMaxStreamsCloseCircuit(TorBool)
Custom(String)

Custom argument, expanded as <first_word> "<second_word> <third_word> ..."

Quiet()

Don’t log anything to the console

Hush()

Only log warnings and errors to the console

Trait Implementations

impl Clone for TorFlag[src]

impl Debug for TorFlag[src]

Auto Trait Implementations

impl RefUnwindSafe for TorFlag

impl Send for TorFlag

impl Sync for TorFlag

impl Unpin for TorFlag

impl UnwindSafe for TorFlag

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.