pub(crate) trait RendCircConnector: Send + Sync {
// Required method
fn get_or_launch_specific<'life0, 'life1, 'async_trait>(
&'life0 self,
netdir: &'life1 NetDir,
kind: HsCircKind,
target: VerbatimLinkSpecCircTarget<OwnedCircTarget>,
) -> Pin<Box<dyn Future<Output = Result<Arc<ClientCirc>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Dyn-safe trait to represent a HsCircPool
.
We need this so that we can hold an Arc<HsCircPool<R>>
in
RendRequestContext
without needing to parameterize on R.