Trait tmq::SocketExt

source ·
pub trait SocketExt {
Show 26 methods // Required methods fn get_linger(&self) -> Result<i32>; fn set_linger(&self, value: i32) -> Result<()>; fn get_sndhwm(&self) -> Result<i32>; fn set_sndhwm(&self, value: i32) -> Result<()>; fn get_rcvhwm(&self) -> Result<i32>; fn set_rcvhwm(&self, value: i32) -> Result<()>; fn is_probe_router(&self) -> Result<bool>; fn set_probe_router(&self, value: bool) -> Result<()>; fn is_ipv6(&self) -> Result<bool>; fn is_immediate(&self) -> Result<bool>; fn is_plain_server(&self) -> Result<bool>; fn is_conflate(&self) -> Result<bool>; fn is_curve_server(&self) -> Result<bool>; fn is_gssapi_server(&self) -> Result<bool>; fn is_gssapi_plaintext(&self) -> Result<bool>; fn get_maxmsgsize(&self) -> Result<i64>; fn get_affinity(&self) -> Result<u64>; fn get_rate(&self) -> Result<i32>; fn get_recovery_ivl(&self) -> Result<i32>; fn get_sndbuf(&self) -> Result<i32>; fn get_rcvbuf(&self) -> Result<i32>; fn get_tos(&self) -> Result<i32>; fn get_reconnect_ivl(&self) -> Result<i32>; fn get_reconnect_ivl_max(&self) -> Result<i32>; fn get_backlog(&self) -> Result<i32>; fn get_identity(&self) -> Result<Vec<u8>>;
}
Expand description

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§

source

fn get_linger(&self) -> Result<i32>

Accessor for the ZMQ_LINGER option.

source

fn set_linger(&self, value: i32) -> Result<()>

Setter for the ZMQ_LINGER option.

source

fn get_sndhwm(&self) -> Result<i32>

Accessor for the ZMQ_SNDHWM option.

source

fn set_sndhwm(&self, value: i32) -> Result<()>

Setter for the ZMQ_SNDHWM option.

source

fn get_rcvhwm(&self) -> Result<i32>

Accessor for the ZMQ_RCVHWM option.

source

fn set_rcvhwm(&self, value: i32) -> Result<()>

Setter for the ZMQ_RCVHWM option.

source

fn is_probe_router(&self) -> Result<bool>

Accessor for the ZMQ_PROBE_ROUTER option.

source

fn set_probe_router(&self, value: bool) -> Result<()>

Setter for the ZMQ_PROBE_ROUTER option.

source

fn is_ipv6(&self) -> Result<bool>

Accessor for the ZMQ_IPV6 option.

source

fn is_immediate(&self) -> Result<bool>

Accessor for the ZMQ_IMMEDIATE option.

source

fn is_plain_server(&self) -> Result<bool>

Accessor for the ZMQ_PLAIN_SERVER option.

source

fn is_conflate(&self) -> Result<bool>

Accessor for the ZMQ_CONFLATE option.

source

fn is_curve_server(&self) -> Result<bool>

Accessor for the ZMQ_CURVE_SERVER option.

source

fn is_gssapi_server(&self) -> Result<bool>

Accessor for the ZMQ_GSSAPI_SERVER option.

source

fn is_gssapi_plaintext(&self) -> Result<bool>

Accessor for the ZMQ_GSSAPI_PLAINTEXT option.

source

fn get_maxmsgsize(&self) -> Result<i64>

Accessor for the ZMQ_MAXMSGSIZE option.

source

fn get_affinity(&self) -> Result<u64>

Accessor for the ZMQ_AFFINITY option.

source

fn get_rate(&self) -> Result<i32>

Accessor for the ZMQ_RATE option.

source

fn get_recovery_ivl(&self) -> Result<i32>

Accessor for the ZMQ_RECOVERY_IVL option.

source

fn get_sndbuf(&self) -> Result<i32>

Accessor for the ZMQ_SNDBUF option.

source

fn get_rcvbuf(&self) -> Result<i32>

Accessor for the ZMQ_RCVBUF option.

source

fn get_tos(&self) -> Result<i32>

Accessor for the ZMQ_TOS option.

source

fn get_reconnect_ivl(&self) -> Result<i32>

Accessor for the ZMQ_RECONNECT_IVL option.

source

fn get_reconnect_ivl_max(&self) -> Result<i32>

Accessor for the ZMQ_RECONNECT_IVL_MAX option.

source

fn get_backlog(&self) -> Result<i32>

Accessor for the ZMQ_BACKLOG option.

source

fn get_identity(&self) -> Result<Vec<u8>>

Accessor for the ZMQ_IDENTITY option.

Implementors§