[][src]Trait ipc_communication::labor::Socium

pub trait Socium<Request, Response> {
    type Proletarian: Proletarian<Request, Response>;
    fn construct_proletarian(&self, channel_id: usize) -> Self::Proletarian;
}

A Proletarian fabric.

Associated Types

type Proletarian: Proletarian<Request, Response>

The one that does the hard job.

Loading content...

Required methods

fn construct_proletarian(&self, channel_id: usize) -> Self::Proletarian

Constructs an instance of a Proletarian.

Loading content...

Implementors

impl<F, P, Req, Resp> Socium<Req, Resp> for F where
    F: Fn(usize) -> P,
    P: Proletarian<Req, Resp>, 
[src]

type Proletarian = P

Loading content...