Expand description
Infrastructure required to support managed PTs.
Re-exportsยง
use crate::config::ManagedTransportOptions;๐use crate::config::TransportOptions;๐use crate::err;๐use crate::err::PtError;๐use crate::ipc::PluggableClientTransport;๐use crate::ipc::PluggableTransport;๐use crate::ipc::PtClientParameters;๐use crate::ipc::PtCommonParameters;๐use crate::ipc::sealed::PluggableTransportPrivate;๐use crate::PtClientMethod;๐use futures::channel::mpsc::UnboundedReceiver;๐use futures::stream::FuturesUnordered;๐use futures::FutureExt;๐use futures::StreamExt;๐use futures::select;๐use oneshot_fused_workaround as oneshot;๐use std::collections::HashMap;๐use std::collections::HashSet;๐use std::future::Future;๐use std::path::Path;๐use std::path::PathBuf;๐use std::pin::Pin;๐use std::sync::Arc;๐use std::sync::RwLock;๐use tor_chanmgr::ProxyProtocol;๐use tor_config_path::CfgPathResolver;๐use tor_error::internal;๐use tor_linkspec::PtTransportName;๐use tor_rtcompat::Runtime;๐use tracing::debug;๐use tracing::warn;๐
Structsยง
- PtReactor ๐
- Background reactor to handle managing pluggable transport binaries.
Enumsยง
- PtReactor
Message ๐ - A message to the
PtReactor.
Functionsยง
- pt_
identifier ๐ - Given a path to a binary for a pluggable transport, return an identifier for that binary in human-readable form.
- pt_
identifier_ ๐as_ path - Given a path to a binary for a pluggable transport, return an identifier for that binary in a format that can be used as a path component.
- spawn_
from_ ๐config - Spawn a managed
PluggableTransportusing aManagedTransportOptions.
Type Aliasesยง
- Spawn
Result ๐ - The result of a spawn attempt: the list of transports the spawned binary covers, and the result.