Skip to main content

Module factory

Module factory 

Source
Expand description

Traits and code to define different mechanisms for building Channels to different kinds of targets.

Re-exportsยง

use std::sync::Arc; ๐Ÿ”’
use std::sync::Mutex; ๐Ÿ”’
use crate::event::ChanMgrEventSender; ๐Ÿ”’
use async_trait::async_trait; ๐Ÿ”’
use tor_error::HasKind; ๐Ÿ”’
use tor_error::HasRetryTime; ๐Ÿ”’
use tor_error::internal; ๐Ÿ”’
use tor_linkspec::HasChanMethod; ๐Ÿ”’
use tor_linkspec::OwnedChanTarget; ๐Ÿ”’
use tor_linkspec::PtTransportName; ๐Ÿ”’
use tor_proto::channel::Channel; ๐Ÿ”’
use tor_proto::memquota::ChannelAccount; ๐Ÿ”’
use tracing::debug; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use safelog::Sensitive; ๐Ÿ”’

Structsยง

BootstrapReporter
An opaque type that lets a ChannelFactory update the ChanMgr about bootstrap progress.
CompoundFactory ๐Ÿ”’
A ChannelFactory built from an optional PtMgr to use for pluggable transports, and a ChannelFactory to use for everything else.

Traitsยง

AbstractPtError
The error type returned by a pluggable transport manager.
AbstractPtMgr
A pluggable transport manager.
ChannelFactory
An object that knows how to build Channels to ChanTargets.
IncomingChannelFactory
Similar to ChannelFactory, but for building channels from incoming streams.