Skip to main content

Module usage

Module usage 

Source
Expand description

Code related to tracking what activities a circuit can be used for.

Re-exportsยง

use rand::Rng; ๐Ÿ”’
use std::fmt; ๐Ÿ”’
use std::fmt::Display; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::time::SystemTime; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use tracing::trace; ๐Ÿ”’
use crate::path::TorPath; ๐Ÿ”’
use crate::path::dirpath::DirPathBuilder; ๐Ÿ”’
use crate::path::exitpath::ExitPathBuilder; ๐Ÿ”’
use tor_chanmgr::ChannelUsage; ๐Ÿ”’
use tor_error::internal; ๐Ÿ”’
use tor_guardmgr::GuardMgr; ๐Ÿ”’
use tor_guardmgr::GuardMonitor; ๐Ÿ”’
use tor_guardmgr::GuardUsable; ๐Ÿ”’
use tor_netdir::Relay; ๐Ÿ”’
use tor_netdoc::types::policy::PortPolicy; ๐Ÿ”’
use tor_rtcompat::Runtime; ๐Ÿ”’
use crate::HsCircKind; ๐Ÿ”’
use crate::HsCircStemKind; ๐Ÿ”’
use crate::path::hspath::HsPathBuilder; ๐Ÿ”’
use tor_linkspec::HasChanMethod; ๐Ÿ”’
use tor_linkspec::HasRelayIds; ๐Ÿ”’
use tor_geoip::CountryCode; ๐Ÿ”’
use tor_linkspec::OwnedChanTarget; ๐Ÿ”’
use tor_guardmgr::vanguards::VanguardMgr; ๐Ÿ”’
use crate::Result; ๐Ÿ”’
use crate::isolation::IsolationHelper; ๐Ÿ”’
use crate::isolation::StreamIsolation; ๐Ÿ”’
use crate::mgr::AbstractTunnel; ๐Ÿ”’
use crate::mgr::OpenEntry; ๐Ÿ”’
use crate::mgr::RestrictionFailed; ๐Ÿ”’

Structsยง

ExitPolicy ๐Ÿ”’
An exit policy, as supported by the last hop of a circuit.
TargetPort
A port that we want to connect to as a client.
TargetPorts
Set of requested target ports, mostly for use in error reporting

Enumsยง

SupportedTunnelUsage ๐Ÿ”’
The purposes for which a circuit is usable.
TargetTunnelUsage ๐Ÿ”’
The purpose for which a circuit is being created.

Functionsยง

owned_targets_equivalent ๐Ÿ”’
Return true if a and b count as the same target for the purpose of comparing DirSpecificTarget values.