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

Connects to a Deref<Target = MetaIoHandler<Metadata + Default> specifying a custom middleware implementation.