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ยง
- Exit
Policy ๐ - An exit policy, as supported by the last hop of a circuit.
- Target
Port - A port that we want to connect to as a client.
- Target
Ports - Set of requested target ports, mostly for use in error reporting
Enumsยง
- Supported
Tunnel ๐Usage - The purposes for which a circuit is usable.
- Target
Tunnel ๐Usage - The purpose for which a circuit is being created.
Functionsยง
- owned_
targets_ ๐equivalent - Return true if
aandbcount as the same target for the purpose of comparingDirSpecificTargetvalues.