[−][src]Module async_zmq::push
PUSH socket module of Pipeline pattern in ZMQ
Use push
function to instantiate a PUSH socket and the you will be able to use methods from Sink
/SinkExt
trait.
Example
use async_zmq::{Result, SinkExt}; #[async_std::main] async fn main() -> Result<()> { let mut zmq = async_zmq::push("tcp://127.0.0.1:5555")?.bind()?; zmq.send(vec!["topic", "broadcast message"]).await?; Ok(()) }
Structs
Push | The async wrapper of ZMQ socket with PUSH type |
Functions
push | Create a ZMQ socket with PUSH type |