[][src]Function warp_json_rpc::service

pub fn service<F>(
    filter: F
) -> impl Service<Request<Body>, Response = Response, Error = Infallible, Future = impl Future<Output = Result<Response, Infallible>>> + Clone where
    F: Filter + Clone,
    F::Future: TryFuture<Error = Rejection>,
    <F::Future as TryFuture>::Ok: Reply

Convert a Filter into a Service.

Note

You MUST call this method to use filters in this crate.