[][src]Function jsonrpc_client_transports::transports::local::connect_with_middleware

pub fn connect_with_middleware<TClient, THandler, TMetadata, TMiddleware>(
    handler: THandler
) -> (TClient, impl Future<Item = (), Error = RpcError>) where
    TClient: From<RpcChannel>,
    TMiddleware: Middleware<TMetadata>,
    THandler: Deref<Target = MetaIoHandler<TMetadata, TMiddleware>>,
    TMetadata: Metadata + Default

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