IPC Made easy!
Ever wanted interprocess communication, but get frustrated at all the boilerplate? This crate is for you!
Here we define a few simple traits that can be implemented to allow you to define how your client and server processes will communicate. You need to do 3 things
- Define a server message that implements [
serde::Serialize] and [serde::Deserialize]. - Define a client message that implements [
serde::Serialize] and [serde::Deserialize]. - Define a struct that implements [
model::IpcModel], referencing your server and client messages.
Then you are happy on your way to writing your application.
Example
use *;
use ;
;
Limitations
This crate cannot handle non-blocking send/receive messages at the moment.