Trait rustless::Handler
[−]
[src]
pub trait Handler: 'static + Send + Sync { fn handle(&self, &mut Request) -> Result<Response, IronError>; }
Handler
s are responsible for handling requests by creating Responses from Requests.
Required Methods
fn handle(&self, &mut Request) -> Result<Response, IronError>
Produce a Response
from a Request, with the possibility of error.