[−][src]Trait jsonrpc_ws_server::RequestMiddleware
Middleware to intercept server requests. You can either terminate the request (by returning a response) or just proceed with standard JSON-RPC handling.
Required methods
fn process(&self, req: &Request) -> MiddlewareAction
Process a request and decide what to do next.
Implementors
impl<F> RequestMiddleware for F where
F: Fn(&Request) -> Option<Response> + Send + Sync + 'static,
[src]
F: Fn(&Request) -> Option<Response> + Send + Sync + 'static,