[−][src]Function tarpc_lib::client::new
pub async fn new<Req, Resp, T>(
config: Config,
transport: T
) -> Result<Channel<Req, Resp>> where
Req: Send + 'static,
Resp: Send + 'static,
T: Transport<Item = Response<Resp>, SinkItem = ClientMessage<Req>> + Send + 'static,
Creates a new Client by wrapping a Transport and spawning a dispatch task
that manages the lifecycle of requests.
Must only be called from on an executor.