[][src]Function warp_json_rpc::filters::json_rpc

pub fn json_rpc() -> impl Filter<Extract = (Builder,), Error = Rejection> + Copy

Create a Filter that requires and initializes JSON RPC handling.

Note that you MUST call this Filter before method or params method.


let rpc = json_rpc().and(method("greet")).and(params::<(String,)>());