pub enum SocketEvent {
Show 16 variants
Connected {
fd: u32,
},
ConnectDelayed,
ConnectRetried {
interval: u32,
},
Listening {
fd: u32,
},
BindFailed {
errno: u32,
},
Accepted {
fd: u32,
},
AcceptFailed {
errno: u32,
},
Closed {
fd: u32,
},
CloseFailed {
errno: u32,
},
Disconnected {
fd: u32,
},
MonitorStopped,
HandshakeFailedNoDetail {
fd: u32,
},
HandshakeSucceeded,
HandshakeFailedProtocol {
err: HandshakeFailure,
},
HandshakeFailedAuth {
error_code: u32,
},
Unknown {
event: u16,
data: u32,
},
}
Expand description
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.
Variants§
Connected
ConnectDelayed
ConnectRetried
Listening
BindFailed
Accepted
AcceptFailed
Closed
CloseFailed
Disconnected
MonitorStopped
HandshakeFailedNoDetail
HandshakeSucceeded
HandshakeFailedProtocol
Fields
§
err: HandshakeFailure
HandshakeFailedAuth
Unknown
Implementations§
Source§impl SocketEvent
impl SocketEvent
Source§impl SocketEvent
impl SocketEvent
pub fn parse_from(msg: &Message) -> Result<Self, MonitorMessageError>
Trait Implementations§
Source§impl Clone for SocketEvent
impl Clone for SocketEvent
Source§fn clone(&self) -> SocketEvent
fn clone(&self) -> SocketEvent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SocketEvent
impl Debug for SocketEvent
Source§impl PartialEq for SocketEvent
impl PartialEq for SocketEvent
impl Copy for SocketEvent
impl Eq for SocketEvent
impl StructuralPartialEq for SocketEvent
Auto Trait Implementations§
impl Freeze for SocketEvent
impl RefUnwindSafe for SocketEvent
impl Send for SocketEvent
impl Sync for SocketEvent
impl Unpin for SocketEvent
impl UnwindSafe for SocketEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more