pub trait Proletarian<Request, Response> {
// Required method
fn process_request(&mut self, request: Request) -> Response;
// Provided method
fn loaf(&mut self) -> LoafingResult { ... }
}Expand description
The one that does the hard job.
Required Methods§
Sourcefn process_request(&mut self, request: Request) -> Response
fn process_request(&mut self, request: Request) -> Response
Processes a request.
Provided Methods§
Sourcefn loaf(&mut self) -> LoafingResult
fn loaf(&mut self) -> LoafingResult
Loafs a bit, e.g. when there are no incoming requests.