[−][src]Function ipc_communication::communication
pub fn communication<Request, Response>(
channels: usize
) -> Result<Communication<Request, Response>, Error> where
Request: Deserialize<'de> + Serialize,
Response: Deserialize<'de> + Serialize,
Sets up communication channels for a given request-response pairs.
Client
is clonable and can be sent across multiple threads or even processes.
Processor
s, on the other hand, are not clonable and can not be accessed from
multiple threads simultaneously, but still can be sent across threads and processes.