API may not be correct. It accepts a plain i32 value for the event type, but then there is the
pub enum SocketEvent
enum, which is what, I think, should be the actual input argument to the monitor. That enum has the to_raw() method, which produces an u16 value. So the resulting call I'm using looks like:
socket.monitor(
"inproc://monitor-client",
zmq::SocketEvent::DISCONNECTED.to_raw() as i32,
)?;
Hi there. It looks like the
API may not be correct. It accepts a plain
i32
value for the event type, but then there is theenum, which is what, I think, should be the actual input argument to the
monitor
. That enum has theto_raw()
method, which produces anu16
value. So the resulting call I'm using looks like:which is IMHO not great...