Rust communication middleware and binding


Are there any Ethernet communication APIs for inter and intra processor communications?
I came across NanoMsg which has Rust bindings, but the package is depreciated.

I want to use both TCP and UDP protocols and
Please let me know if there are any similar packages.

Thank you