pub fn connect_isolated_with_inbound<PeerTransport, InboundService>(
network: &Network,
data_stream: PeerTransport,
user_agent: String,
inbound_service: InboundService,
) -> impl Future<Output = Result<Client, BoxError>>
Expand description
Creates an isolated Zcash peer connection using the provided data stream. This function is for testing purposes only.
See connect_isolated
for details.
§Additional Inputs
inbound_service
: a [tower::Service
] that answers inbound requests from the connected peer.
§Privacy
This function can make the isolated connection send different responses to peers, which makes it stand out from other isolated connections from other peers.