[][src]Trait ipc_communication::labor::Proletarian

pub trait Proletarian<Request, Response> {
    fn process_request(&mut self, request: Request) -> Response;

    fn loaf(&mut self) -> LoafingResult { ... }
}

The one that does the hard job.

Required methods

fn process_request(&mut self, request: Request) -> Response

Processes a request.

Loading content...

Provided methods

fn loaf(&mut self) -> LoafingResult

Loafs a bit, e.g. when there are no incoming requests.

Loading content...

Implementors

impl<F: FnMut(Req) -> Resp, Req, Resp> Proletarian<Req, Resp> for F[src]

Loading content...