pub fn connect_with_metadata_and_middleware<TClient, THandler, TMetadata, TMiddleware>(
handler: THandler,
meta: TMetadata
) -> (TClient, impl Future<Output = RpcResult<()>>)where
TClient: From<RpcChannel>,
TMiddleware: Middleware<TMetadata> + Unpin,
THandler: Deref<Target = MetaIoHandler<TMetadata, TMiddleware>> + Unpin,
TMetadata: Metadata + Unpin,
Expand description
Connects to a Deref<Target = MetaIoHandler<Metadata>
specifying a custom middleware implementation.