Skip to main content

Module builder

Module builder 

Source
Expand description

Implement a concrete type to build channels over a transport.

Re-exportsยง

use async_trait::async_trait; ๐Ÿ”’
use futures::AsyncRead; ๐Ÿ”’
use futures::AsyncWrite; ๐Ÿ”’
use std::io; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::sync::Mutex; ๐Ÿ”’
use std::time::Duration; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use crate::factory::BootstrapReporter; ๐Ÿ”’
use crate::factory::ChannelFactory; ๐Ÿ”’
use crate::factory::IncomingChannelFactory; ๐Ÿ”’
use crate::transport::TransportImplHelper; ๐Ÿ”’
use crate::Error; ๐Ÿ”’
use crate::event::ChanMgrEventSender; ๐Ÿ”’
use safelog::MaybeSensitive; ๐Ÿ”’
use tor_basic_utils::rand_hostname; ๐Ÿ”’
use tor_error::internal; ๐Ÿ”’
use tor_linkspec::ChanTarget; ๐Ÿ”’
use tor_linkspec::HasChanMethod; ๐Ÿ”’
use tor_linkspec::IntoOwnedChanTarget; ๐Ÿ”’
use tor_linkspec::OwnedChanTarget; ๐Ÿ”’
use tor_proto::channel::ChannelType; ๐Ÿ”’
use tor_proto::channel::kist::KistParams; ๐Ÿ”’
use tor_proto::channel::params::ChannelPaddingInstructionsUpdates; ๐Ÿ”’
use tor_proto::memquota::ChannelAccount; ๐Ÿ”’
use tor_proto::peer::PeerAddr; ๐Ÿ”’
use tor_rtcompat::SpawnExt; ๐Ÿ”’
use tor_rtcompat::CertifiedConn; ๐Ÿ”’
use tor_rtcompat::Runtime; ๐Ÿ”’
use tor_rtcompat::StreamOps; ๐Ÿ”’
use tor_rtcompat::TlsProvider; ๐Ÿ”’
use tor_rtcompat::tls::TlsConnector; ๐Ÿ”’
use crate::mgr::ChannelBandwidthPools; ๐Ÿ”’
use safelog::Sensitive; ๐Ÿ”’
use std::net::SocketAddr; ๐Ÿ”’
use tor_async_utils::global_rate_limit::GlobalRateLimitedConn; ๐Ÿ”’
use tor_error::bad_api_usage; ๐Ÿ”’
use tor_proto::RelayChannelAuthMaterial; ๐Ÿ”’
use tor_proto::relay::CreateRequestHandler; ๐Ÿ”’

Structsยง

ChanBuilder
TLS-based channel builder.