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
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 the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for NetworkConfigBuilder
impl Send for NetworkConfigBuilder
impl Sync for NetworkConfigBuilder
impl Unpin for NetworkConfigBuilder
impl UnwindSafe for NetworkConfigBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V