Expand description
Module: zmq
Re-exports§
pub use crate::SocketType::*;
Structs§
- Context
- Handle for a 0MQ context, used to create sockets.
- Curve
KeyPair - A CURVE key pair generated by 0MQ.
- Message
- Holds a 0MQ message.
- Poll
Events - Type representing pending socket events.
- Poll
Item - Represents a handle that can be
poll()
ed. - Socket
- A socket, the central object in 0MQ.
Enums§
- Decode
Error - Errors that can occur while decoding Z85.
- Encode
Error - Errors that can occur while encoding Z85.
- Error
- An error returned by a 0MQ API function.
- Mechanism
- Security Mechanism
- Socket
Event - Socket Events
- Socket
Type - Socket types
Constants§
- POLLERR
- For
poll()
, specifies to signal when an error condition is present on a socket. This only applies to non-0MQ sockets. - POLLIN
- For
poll()
, specifies to signal when a message/some data can be read from a socket. - POLLOUT
- For
poll()
, specifies to signal when a message/some data can be written to a socket.
Statics§
- DONTWAIT
- Flag for socket
send
methods that specifies non-blocking mode. - SNDMORE
- Flag for socket
send
methods that specifies that more frames of a multipart message will follow.
Traits§
- Sendable
- Sendable over a
Socket
.
Functions§
- has
- Return true if the used 0MQ library has the given capability.
- poll
- Poll for events on multiple sockets.
- proxy
- Start a 0MQ proxy in the current thread.
- proxy_
steerable - Start a 0MQ proxy in the current thread, with a control socket.
- proxy_
steerable_ with_ capture - Start a 0MQ proxy in the current thread, with capture and control sockets.
- proxy_
with_ capture - Start a 0MQ proxy in the current thread, with a capture socket.
- version
- Return the current zeromq version, as
(major, minor, patch)
. - z85_
decode - Decode a binary key from Z85-encoded text.
- z85_
encode - Encode a binary key as Z85 printable text.
Type Aliases§
- Result
zmq
-specific Result type.