Expand description
Implement a cache for onion descriptors and the facility to remember a bit about onion service history.
Re-exportsΒ§
use std::fmt::Debug;πuse std::fmt::Debug;πuse std::mem;πuse std::panic::AssertUnwindSafe;πuse std::sync::Arc;πuse std::sync::Mutex;πuse std::sync::MutexGuard;πuse futures::FutureExt as _;πuse futures::task::SpawnError;πuse async_trait::async_trait;πuse educe::Educe;πuse either::Either;πuse postage::stream::Stream as _;πuse tracing::debug;πuse tracing::error;πuse tracing::instrument;πuse tracing::instrument;πuse tracing::trace;πuse safelog::DisplayRedacted as _;πuse tor_basic_utils::define_accessor_trait;πuse tor_circmgr::isolation::Isolation;πuse tor_error::Bug;πuse tor_error::ErrorReport as _;πuse tor_error::debug_report;πuse tor_error::error_report;πuse tor_error::internal;πuse tor_hscrypto::pk::HsId;πuse tor_netdir::NetDir;πuse tor_rtcompat::scheduler::TaskHandle;πuse tor_rtcompat::scheduler::TaskSchedule;πuse tor_rtcompat::Runtime;πuse tor_rtcompat::SpawnExt as _;πuse web_time_compat::Duration;πuse web_time_compat::Instant;πuse crate::isol_map;πuse crate::ConnError;πuse crate::HsClientConnector;πuse crate::HsClientSecretKeys;πuse either::Either::*;π
StructsΒ§
- Config
- Configuration, currently just some retry parameters
- Services π
- Hidden services;, our connections to them, and history of connections, etc.
- Table
Index π
EnumsΒ§
- Service
State π - Value in the
Servicesdata structure
ConstantsΒ§
- MAX_
RECHECKS π - Number of times weβre willing to iterate round the state machine loop
- RETAIN_
CIRCUIT_ πAFTER_ LAST_ USE - C Tor
MaxCircuitDirtiness - RETAIN_
DATA_ πAFTER_ LAST_ USE - How long to retain cached data about a hidden service
TraitsΒ§
- HsClient
Connector Config - Configuration for an HS client connector
- Mockable
Connector Data - Mocking for actual HS connection work, to let us test the
Servicesstate machine
FunctionsΒ§
- obtain_
circuit_ πor_ continuation_ info - Obtain a circuit from the
Servicestable, or return a continuation
Type AliasesΒ§
- Continuation π
- βContinuationβ return type from
obtain_circuit_or_continuation_info - Service
Record π - Entry in the 2nd-level lookup array