pub struct PulsarSubscriber { /* private fields */ }Expand description
A subscription to one or more Pulsar topics; yields PulsarMessages.
Dropping the subscriber stops the driver task, which closes the client consumer.
Implementations§
Trait Implementations§
Source§impl Debug for PulsarSubscriber
impl Debug for PulsarSubscriber
Source§impl Seekable for PulsarSubscriber
impl Seekable for PulsarSubscriber
Source§type Seeker = PulsarSeeker
type Seeker = PulsarSeeker
The handle usable while this subscriber’s stream is running.
Source§fn seeker(&self) -> PulsarSeeker
fn seeker(&self) -> PulsarSeeker
Mints a handle for repositioning this subscription.
Source§impl Subscriber for PulsarSubscriber
impl Subscriber for PulsarSubscriber
Source§type Message = PulsarMessage
type Message = PulsarMessage
The message type yielded by this subscriber.
Source§type Error = PulsarError
type Error = PulsarError
The error type yielded by the stream when delivery fails.
Source§fn stream(
&mut self,
) -> impl Stream<Item = Result<PulsarMessage, PulsarError>> + Send + '_
fn stream( &mut self, ) -> impl Stream<Item = Result<PulsarMessage, PulsarError>> + Send + '_
Returns a stream of broker deliveries. Read more
Auto Trait Implementations§
impl Freeze for PulsarSubscriber
impl RefUnwindSafe for PulsarSubscriber
impl Send for PulsarSubscriber
impl Sync for PulsarSubscriber
impl Unpin for PulsarSubscriber
impl UnsafeUnpin for PulsarSubscriber
impl UnwindSafe for PulsarSubscriber
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