pub struct RequestSender { /* private fields */ }Expand description
A REQ Socket returned from the request fn
Implementations§
Source§impl RequestSender
impl RequestSender
Sourcepub async fn send(self, msg: Multipart) -> Result<RequestReceiver>
pub async fn send(self, msg: Multipart) -> Result<RequestReceiver>
Send a multipart message and return a RequestReceiver
Trait Implementations§
Source§impl AsZmqSocket for RequestSender
impl AsZmqSocket for RequestSender
Source§fn get_socket(&self) -> &Socket
fn get_socket(&self) -> &Socket
Return a reference to the inner ZMQ socket.
Auto Trait Implementations§
impl !RefUnwindSafe for RequestSender
impl !Sync for RequestSender
impl !UnwindSafe for RequestSender
impl Freeze for RequestSender
impl Send for RequestSender
impl Unpin for RequestSender
impl UnsafeUnpin for RequestSender
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
Source§impl<T> SocketExt for Twhere
T: AsZmqSocket,
impl<T> SocketExt for Twhere
T: AsZmqSocket,
Source§fn set_probe_router(&self, value: bool) -> Result<(), TmqError>
fn set_probe_router(&self, value: bool) -> Result<(), TmqError>
Setter for the
ZMQ_PROBE_ROUTER option.Source§fn is_gssapi_server(&self) -> Result<bool, TmqError>
fn is_gssapi_server(&self) -> Result<bool, TmqError>
Accessor for the
ZMQ_GSSAPI_SERVER option.Source§fn is_gssapi_plaintext(&self) -> Result<bool, TmqError>
fn is_gssapi_plaintext(&self) -> Result<bool, TmqError>
Accessor for the
ZMQ_GSSAPI_PLAINTEXT option.Source§fn get_reconnect_ivl(&self) -> Result<i32, TmqError>
fn get_reconnect_ivl(&self) -> Result<i32, TmqError>
Accessor for the
ZMQ_RECONNECT_IVL option.