Skip to main content

Module managed

Module managed 

Source
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 crate::PtSharedState; ๐Ÿ”’
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ยง

PtReactorMessage ๐Ÿ”’
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 PluggableTransport using a ManagedTransportOptions.

Type Aliasesยง

SpawnResult ๐Ÿ”’
The result of a spawn attempt: the list of transports the spawned binary covers, and the result.