Trait backtalk::Handler
[−]
[src]
pub trait Handler: Send + Sync { fn handle(&self, req: Request) -> BoxFuture<Reply, Error>; }
Anything that returns a future reply for a request.
You'll probably implement a bunch of these with your application-specific code. For simplicity,
any closure with the signature Fn(Request) -> Future<Reply, Error>
is automatically a Handler.