pub fn create_proxy_and_stream<T: ProtocolMarker>(
) -> Result<(T::Proxy, T::RequestStream), Error>
Expand description

Create a request stream and proxy connected to one another.

Useful for testing where both the request stream and proxy are used in the same process.

§Panics

If called outside the context of an active async executor.