fidl::endpoints

Function create_proxy

Source
pub fn create_proxy<T: ProtocolMarker>() -> Result<(T::Proxy, ServerEnd<T>), Error>
Expand description

Create a client proxy and a server endpoint connected to it by a channel.

Useful for sending channel handles to calls that take arguments of type server_end:SomeProtocol

ยงPanics

If called outside the context of an active async executor.