Function fidl::endpoints::create_sync_proxy_and_stream

source ·
pub fn create_sync_proxy_and_stream<T: ProtocolMarker>() -> Result<(T::SynchronousProxy, T::RequestStream), Error>
Expand description

Create a request stream and synchronous 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.