pub struct ConnectedZmqRpc { /* private fields */ }Expand description
The connected form of ZmqRpc.
Implementations§
Source§impl ConnectedZmqRpc
impl ConnectedZmqRpc
Sourcepub fn bound_address(&self) -> Option<String>
pub fn bound_address(&self) -> Option<String>
The address the responder resolved by binding (useful with an ephemeral
tcp://...:0 endpoint); None until a subscription has bound.
Sourcepub fn publisher(&self) -> ZmqRpcPublisher
pub fn publisher(&self) -> ZmqRpcPublisher
A publisher from the connected form.
Trait Implementations§
Source§impl ConnectedBroker for ConnectedZmqRpc
impl ConnectedBroker for ConnectedZmqRpc
Source§impl Debug for ConnectedZmqRpc
impl Debug for ConnectedZmqRpc
Source§impl DefaultPublish for ConnectedZmqRpc
impl DefaultPublish for ConnectedZmqRpc
Source§type Policy = ZmqRpcPublish
type Policy = ZmqRpcPublish
Source§impl PublishPolicy<ConnectedZmqRpc> for ZmqRpcPublish
impl PublishPolicy<ConnectedZmqRpc> for ZmqRpcPublish
Source§fn channel_bindings(&self, channel: &str) -> Bindings
fn channel_bindings(&self, channel: &str) -> Bindings
The destination reaches the binding and stays out of it: a reply travels to the identity the ROUTER supplies, so no name on this channel is an address a peer can send to.
Source§type Live = ZmqRpcPublisher
type Live = ZmqRpcPublisher
Publisher for a leaf policy, or the live
wiring form for a combinator stack (a typed publisher over a policy pairs into the same
typed publisher over the live leaf).Source§fn pair(
self,
connected: &ConnectedZmqRpc,
) -> impl Future<Output = Result<Self::Live, PairError>>
fn pair( self, connected: &ConnectedZmqRpc, ) -> impl Future<Output = Result<Self::Live, PairError>>
Source§fn reply_address_location(&self) -> Option<&'static str>
fn reply_address_location(&self) -> Option<&'static str>
Source§impl Subscribe for ConnectedZmqRpc
impl Subscribe for ConnectedZmqRpc
Source§type Copies = NamedCopies
type Copies = NamedCopies
A copy of a request has no address of its own, so the mount site names where one goes.
The name a responder subscribes under is not a publish destination on this pattern:
ZmqRpcPublisher routes to the peer identity a request carried and refuses a plain
name, so a copy published under the subscription name would reach nothing. A registration
that binds .out_retry(..) over a responder therefore has to say where the copies go,
with .to("name") or with a transform that names one per delivery, and one that says
neither is refused before the subscription opens. Ask a requester again rather than
retrying its request from the responder side.
Source§type Subscriber = ZmqRpcSubscriber
type Subscriber = ZmqRpcSubscriber
Source§fn declare_retry(
&self,
name: &str,
declaration: &RetryDeclaration,
) -> Result<(), DeclareRetryError>
fn declare_retry( &self, name: &str, declaration: &RetryDeclaration, ) -> Result<(), DeclareRetryError>
Source§impl TestableBroker for ConnectedZmqRpc
The exchange’s routing: a request reaches the responder that binds the endpoint, or one of the
responders that dial it in turn, stamped with the peer that asked; an answer reaches that peer
and no subscription.
impl TestableBroker for ConnectedZmqRpc
The exchange’s routing: a request reaches the responder that binds the endpoint, or one of the responders that dial it in turn, stamped with the peer that asked; an answer reaches that peer and no subscription.
Source§fn install_coordinator(&self, coordinator: Coordinator)
fn install_coordinator(&self, coordinator: Coordinator)
Source§fn inject(&self, message: OutgoingMessage<'_>)
fn inject(&self, message: OutgoingMessage<'_>)
Source§fn published(&self, name: &str) -> Vec<RawMessage>
fn published(&self, name: &str) -> Vec<RawMessage>
name on this broker, in publish order, after the
evicted ones. Backs the harness’s published::<T>(name) assertions and
expect_published.Source§fn routes(&self, destination: &str, subscriptions: &[&str]) -> Vec<usize>
fn routes(&self, destination: &str, subscriptions: &[&str]) -> Vec<usize>
destination is delivered to,
as the broker’s own routing picks them: the positions in subscriptions (the names the
app subscribed under on this broker) of the ones it delivers to. Read moreSource§fn backlog(&self) -> Backlog
fn backlog(&self) -> Backlog
Backlog::Missed for publish/subscribe,
Backlog::Delivered for a queue or a log that keeps them. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ConnectedZmqRpc
impl !UnwindSafe for ConnectedZmqRpc
impl Freeze for ConnectedZmqRpc
impl Send for ConnectedZmqRpc
impl Sync for ConnectedZmqRpc
impl Unpin for ConnectedZmqRpc
impl UnsafeUnpin for ConnectedZmqRpc
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more