Skip to main content

RequestSender

Struct RequestSender 

Source
pub struct RequestSender { /* private fields */ }
Expand description

A REQ Socket returned from the request fn

Implementations§

Source§

impl RequestSender

Source

pub async fn send(self, msg: Multipart) -> Result<RequestReceiver>

Send a multipart message and return a RequestReceiver

Trait Implementations§

Source§

impl AsZmqSocket for RequestSender

Source§

fn get_socket(&self) -> &Socket

Return a reference to the inner ZMQ socket.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> SocketExt for T
where T: AsZmqSocket,

Source§

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

Accessor for the ZMQ_IPV6 option.
Source§

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

Accessor for the ZMQ_IMMEDIATE option.
Source§

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

Accessor for the ZMQ_PLAIN_SERVER option.
Source§

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

Accessor for the ZMQ_CONFLATE option.
Source§

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

Accessor for the ZMQ_PROBE_ROUTER option.
Source§

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

Setter for the ZMQ_PROBE_ROUTER option.
Source§

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

Accessor for the ZMQ_CURVE_SERVER option.
Source§

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

Accessor for the ZMQ_GSSAPI_SERVER option.
Source§

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

Accessor for the ZMQ_GSSAPI_PLAINTEXT option.
Source§

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

Accessor for the ZMQ_MAXMSGSIZE option.
Source§

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

Accessor for the ZMQ_SNDHWM option.
Source§

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

Setter for the ZMQ_SNDHWM option.
Source§

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

Accessor for the ZMQ_RCVHWM option.
Source§

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

Setter for the ZMQ_RCVHWM option.
Source§

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

Accessor for the ZMQ_AFFINITY option.
Source§

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

Accessor for the ZMQ_RATE option.
Source§

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

Accessor for the ZMQ_RECOVERY_IVL option.
Source§

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

Accessor for the ZMQ_SNDBUF option.
Source§

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

Accessor for the ZMQ_RCVBUF option.
Source§

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

Accessor for the ZMQ_TOS option.
Source§

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

Accessor for the ZMQ_LINGER option.
Source§

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

Setter for the ZMQ_LINGER option.
Source§

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

Accessor for the ZMQ_RECONNECT_IVL option.
Source§

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

Accessor for the ZMQ_RECONNECT_IVL_MAX option.
Source§

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

Accessor for the ZMQ_BACKLOG option.
Source§

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

Accessor for the ZMQ_IDENTITY option.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.