Skip to content

Commit

Permalink
add doc comment to HandshakeFailure
Browse files Browse the repository at this point in the history
  • Loading branch information
antonilol committed May 1, 2024
1 parent 389b086 commit 21f7f4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/monitor/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ macro_rules! type_or_u32 {

macro_rules! define_handshake_failure_enum {
(
$(#[$attr:meta])*
pub enum HandshakeFailure {
$(
$name:ident = $zmq_sys_name:ident,
)*
}
) => {
$(#[$attr])*
#[repr(u32)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum HandshakeFailure {
Expand All @@ -62,6 +64,7 @@ macro_rules! define_handshake_failure_enum {
}

define_handshake_failure_enum! {
/// Possible values for the ZMQ_EVENT_HANDSHAKE_FAILED_PROTOCOL socket event.
pub enum HandshakeFailure {
ZmtpUnspecified = ZMQ_PROTOCOL_ERROR_ZMTP_UNSPECIFIED,
ZmtpUnexpectedCommand = ZMQ_PROTOCOL_ERROR_ZMTP_UNEXPECTED_COMMAND,
Expand Down Expand Up @@ -128,8 +131,7 @@ macro_rules! define_socket_event_enum {

define_socket_event_enum! {
/// An event from one of the connected sockets. See the "SUPPORTED EVENTS" section in the
/// "zmq_socket_monitor" manual page (`man zmq_socket_monitor`) for the original
/// documentation.
/// "zmq_socket_monitor" manual page (`man zmq_socket_monitor`) for the original documentation.
pub enum SocketEvent {
Connected(fd) = ZMQ_EVENT_CONNECTED,
ConnectDelayed = ZMQ_EVENT_CONNECT_DELAYED,
Expand Down

0 comments on commit 21f7f4f

Please sign in to comment.