type Constructor = Box<dyn Fn(ChannelPtr, P2pPtr) -> Boxed<ProtocolBasePtr> + Send + Sync>;

Aliased Type§

struct Constructor(Unique<dyn Fn(Arc<Channel>, Arc<P2p>) -> Pin<Box<dyn Future<Output = Arc<dyn ProtocolBase + Send + Sync>> + Send>> + Send + Sync>, Global);

Fields§

§0: Unique<dyn Fn(Arc<Channel>, Arc<P2p>) -> Pin<Box<dyn Future<Output = Arc<dyn ProtocolBase + Send + Sync>> + Send>> + Send + Sync>§1: Global