pub struct ConnectedPulsarBroker { /* private fields */ }Expand description
The typed witness that connect succeeded: holds the live client directly.
Implementations§
Source§impl ConnectedPulsarBroker
impl ConnectedPulsarBroker
Sourcepub fn publisher(&self) -> PulsarPublisher
pub fn publisher(&self) -> PulsarPublisher
A publisher from the connected form. It rides the same cell-backed publisher type as
the early path; by now connect has filled the cell, so it resolves immediately.
Sourcepub async fn subscribe_descriptor(
&self,
descriptor: PulsarSubscription,
) -> Result<PulsarSubscriber, PulsarError>
pub async fn subscribe_descriptor( &self, descriptor: PulsarSubscription, ) -> Result<PulsarSubscriber, PulsarError>
Opens the subscription described by descriptor.
§Errors
Returns PulsarError when the descriptor is invalid, the consumer cannot be created,
or the broker is shut down.
Trait Implementations§
Source§impl ConnectedBroker for ConnectedPulsarBroker
impl ConnectedBroker for ConnectedPulsarBroker
Source§type Error = PulsarError
type Error = PulsarError
The error type returned by connected-broker operations.
Source§impl Debug for ConnectedPulsarBroker
impl Debug for ConnectedPulsarBroker
Source§impl DefaultPublish for ConnectedPulsarBroker
impl DefaultPublish for ConnectedPulsarBroker
Source§type Policy = PulsarPublish
type Policy = PulsarPublish
The broker’s plain publish policy, constructible with its defaults.
Source§impl PublishPolicy<ConnectedPulsarBroker> for PulsarPublish
impl PublishPolicy<ConnectedPulsarBroker> for PulsarPublish
Source§type Live = PulsarPublisher
type Live = PulsarPublisher
The live form this policy pairs into: a
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§impl Subscribe for ConnectedPulsarBroker
impl Subscribe for ConnectedPulsarBroker
Source§type Subscriber = PulsarSubscriber
type Subscriber = PulsarSubscriber
The subscriber type opened by a by-name subscription.
Source§impl SubscriptionSource<ConnectedPulsarBroker> for PulsarSubscription
impl SubscriptionSource<ConnectedPulsarBroker> for PulsarSubscription
Source§type Subscriber = PulsarSubscriber
type Subscriber = PulsarSubscriber
The subscriber type this source opens.
Source§async fn subscribe(
self,
connected: &ConnectedPulsarBroker,
) -> Result<PulsarSubscriber, PulsarError>
async fn subscribe( self, connected: &ConnectedPulsarBroker, ) -> Result<PulsarSubscriber, PulsarError>
Opens the subscription against the connected broker. Called once at startup. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ConnectedPulsarBroker
impl !UnwindSafe for ConnectedPulsarBroker
impl Freeze for ConnectedPulsarBroker
impl Send for ConnectedPulsarBroker
impl Sync for ConnectedPulsarBroker
impl Unpin for ConnectedPulsarBroker
impl UnsafeUnpin for ConnectedPulsarBroker
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