From 2972b40b8e689064d95b0d671c07718783376623 Mon Sep 17 00:00:00 2001 From: fMeow Date: Fri, 19 Jul 2024 07:15:51 +0800 Subject: [PATCH] feat: support `ZMQ_INVERT_MATCHING` option --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 17dc0ccd..d93de8a6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -793,6 +793,7 @@ impl Socket { (is_gssapi_plaintext, set_gssapi_plaintext) => ZMQ_GSSAPI_PLAINTEXT as bool, (_, set_req_relaxed) => ZMQ_REQ_RELAXED as bool, (_, set_req_correlate) => ZMQ_REQ_CORRELATE as bool, + (is_invert_matching, set_invert_matching) => ZMQ_INVERT_MATCHING as bool, } /// Return the type of this socket. @@ -990,6 +991,7 @@ impl Socket { (_, set_curve_serverkey) => ZMQ_CURVE_SERVERKEY as &[u8], (_, set_gssapi_principal) => ZMQ_GSSAPI_PRINCIPAL as &str, (_, set_gssapi_service_principal) => ZMQ_GSSAPI_SERVICE_PRINCIPAL as &str, + } /// Create a `PollItem` from the socket.