[−][src]Trait tmq::SocketExt
Trait which defines configuration functions for ZMQ sockets.
See ZMQ documentation for more info: http://api.zeromq.org/4-2:zmq-setsockopt
Some socket options need to be set before bind/connect via the SocketBuilder
methods
Required methods
fn get_linger(&self) -> Result<i32>
Accessor for the ZMQ_LINGER
option.
fn set_linger(&self, value: i32) -> Result<()>
Setter for the ZMQ_LINGER
option.
fn get_sndhwm(&self) -> Result<i32>
Accessor for the ZMQ_SNDHWM
option.
fn set_sndhwm(&self, value: i32) -> Result<()>
Setter for the ZMQ_SNDHWM
option.
fn get_rcvhwm(&self) -> Result<i32>
Accessor for the ZMQ_RCVHWM
option.
fn set_rcvhwm(&self, value: i32) -> Result<()>
Setter for the ZMQ_RCVHWM
option.
fn is_probe_router(&self) -> Result<bool>
Accessor for the ZMQ_PROBE_ROUTER
option.
fn set_probe_router(&self, value: bool) -> Result<()>
Setter for the ZMQ_PROBE_ROUTER
option.
fn is_ipv6(&self) -> Result<bool>
Accessor for the ZMQ_IPV6
option.
fn is_immediate(&self) -> Result<bool>
Accessor for the ZMQ_IMMEDIATE
option.
fn is_plain_server(&self) -> Result<bool>
Accessor for the ZMQ_PLAIN_SERVER
option.
fn is_conflate(&self) -> Result<bool>
Accessor for the ZMQ_CONFLATE
option.
fn is_curve_server(&self) -> Result<bool>
Accessor for the ZMQ_CURVE_SERVER
option.
fn is_gssapi_server(&self) -> Result<bool>
Accessor for the ZMQ_GSSAPI_SERVER
option.
fn is_gssapi_plaintext(&self) -> Result<bool>
Accessor for the ZMQ_GSSAPI_PLAINTEXT
option.
fn get_maxmsgsize(&self) -> Result<i64>
Accessor for the ZMQ_MAXMSGSIZE
option.
fn get_affinity(&self) -> Result<u64>
Accessor for the ZMQ_AFFINITY
option.
fn get_rate(&self) -> Result<i32>
Accessor for the ZMQ_RATE
option.
fn get_recovery_ivl(&self) -> Result<i32>
Accessor for the ZMQ_RECOVERY_IVL
option.
fn get_sndbuf(&self) -> Result<i32>
Accessor for the ZMQ_SNDBUF
option.
fn get_rcvbuf(&self) -> Result<i32>
Accessor for the ZMQ_RCVBUF
option.
fn get_tos(&self) -> Result<i32>
Accessor for the ZMQ_TOS
option.
fn get_reconnect_ivl(&self) -> Result<i32>
Accessor for the ZMQ_RECONNECT_IVL
option.
fn get_reconnect_ivl_max(&self) -> Result<i32>
Accessor for the ZMQ_RECONNECT_IVL_MAX
option.
fn get_backlog(&self) -> Result<i32>
Accessor for the ZMQ_BACKLOG
option.
fn get_identity(&self) -> Result<Vec<u8>>
Accessor for the ZMQ_IDENTITY
option.