Trait redif::Handler [] [src]

pub trait Handler {
    fn handle(&mut self, req: &Value) -> Option<Value>;
}

Handler handle client's request and produce response

if there is Some(response), then redif will send response to client; if there is None response, then redif would send nothing to client, and client maybe starve!

Required Methods

Implementors