Struct tor_dirmgr::NetworkConfigBuilder[][src]

pub struct NetworkConfigBuilder { /* fields omitted */ }
Expand description

An object used to build a network configuration. You shouldn’t need to use one of these directly for working on the standard Tor network; the defaults are correct for use there.

Implementations

Return a new NetworkConfigBuilder.

Add fallback as a fallback directory.

Fallback directories are used to reach the Tor network if the client has not yet retrieved any other directory information.

By default, if we are using the default set of authorities, we use a hardcoded set of fallback directories chosen from the Tor network. Using this function or the authority() function means that we will not be using the default set of fallback directories.

Add authority as a directory authority.

Directory authorities are a trusted set of servers that periodically sign documents attesting to the state of the Tor network.

By default, we use the set of authorities that maintains the real Tor network. Calling this function opts out of using that set.

Try to build a network configuration corresponding to the information in this builder.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.