pub struct ZmqRpc { /* private fields */ }Expand description
The DEALER/ROUTER request-reply pattern.
§Examples
use ruststream_zeromq::{ZmqEndpoint, ZmqRpc};
let responder = ZmqRpc::new(ZmqEndpoint::bind("tcp://0.0.0.0:5557"));
let requester = ZmqRpc::new(ZmqEndpoint::connect("tcp://ml:5557"));Implementations§
Source§impl ZmqRpc
impl ZmqRpc
Sourcepub fn new(endpoint: ZmqEndpoint) -> Self
pub fn new(endpoint: ZmqEndpoint) -> Self
Records the endpoint. No I/O.
Sourcepub fn publisher(&self) -> ZmqRpcPublisher
pub fn publisher(&self) -> ZmqRpcPublisher
A publisher sharing this pattern’s state; buildable before connect.
Trait Implementations§
Source§impl Broker for ZmqRpc
impl Broker for ZmqRpc
Source§impl DescribeServer for ZmqRpc
impl DescribeServer for ZmqRpc
Source§fn describe_server(&self) -> ServerSpec
fn describe_server(&self) -> ServerSpec
Returns the server coordinates for this broker.
Auto Trait Implementations§
impl !RefUnwindSafe for ZmqRpc
impl !UnwindSafe for ZmqRpc
impl Freeze for ZmqRpc
impl Send for ZmqRpc
impl Sync for ZmqRpc
impl Unpin for ZmqRpc
impl UnsafeUnpin for ZmqRpc
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