jsonrpc_client_transports::transports::local

Function connect_with_metadata

Source
pub fn connect_with_metadata<TClient, THandler, TMetadata>(
    handler: THandler,
    meta: TMetadata,
) -> (TClient, impl Future<Output = RpcResult<()>>)
where TClient: From<RpcChannel>, TMetadata: Metadata + Unpin, THandler: Deref<Target = MetaIoHandler<TMetadata>> + Unpin,
Expand description

Connects to a Deref<Target = MetaIoHandler<Metadata>.