Currently only channels and shared memory regions can be sent via IPC. It would be nice if one could serialize arbitrary objects implementing IntoRawFd and FromRawFd.
eg:
let handle = Handle::new(File::open(...).unwrap());
tx.send(handle).unwrap();
let file = rx.recv().unwrap().into_inner();
Currently only channels and shared memory regions can be sent via IPC. It would be nice if one could serialize arbitrary objects implementing
IntoRawFd
andFromRawFd
.eg: