[][src]Crate zedmq

Note that this library is in the very early stages of development! Anything and everything may change!

zedmq

A Lightweight, Safe, pure-Rust ØMQ/ZMTP library implementation

Index

Brief

Zedmq is a native implementation of ØMQ in Rust focusing on:

  • being as lightweight as possible.
  • being completely safe.
  • providing a simple, blocking, obvious API.

Examples

use zedmq::prelude::*;

fn main() -> std::io::Result<()> {
    let mut socket = <Pull as Socket>::bind("tcp://127.0.0.1:5678")?;

    while Some(message) = socket.recv() {
        dbg!(message);
    }

    Ok(())
}

Modules

prelude

The prelude.

Structs

Pull

A zmq PULL socket.

Traits

Socket

A trait used to generalize ZMQ behaviour.