Trait Socium

Source
pub trait Socium<Request, Response> {
    type Proletarian: Proletarian<Request, Response>;

    // Required method
    fn construct_proletarian(&self, channel_id: usize) -> Self::Proletarian;
}
Expand description

A Proletarian fabric.

Required Associated Types§

Source

type Proletarian: Proletarian<Request, Response>

The one that does the hard job.

Required Methods§

Source

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

Constructs an instance of a Proletarian.

Implementors§

Source§

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