pub struct PulsarSeeker { /* private fields */ }Expand description
Repositions a PulsarSubscriber while its stream runs; minted by
Seekable::seeker.
A seek covers every topic (and partition) of the subscription’s consumer, and the broker redelivers from the new position; per-message acknowledgement state needs no reset.
Trait Implementations§
Source§impl Clone for PulsarSeeker
impl Clone for PulsarSeeker
Source§fn clone(&self) -> PulsarSeeker
fn clone(&self) -> PulsarSeeker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PulsarSeeker
impl Debug for PulsarSeeker
Source§impl Seeker for PulsarSeeker
impl Seeker for PulsarSeeker
Source§type Position = PulsarPosition
type Position = PulsarPosition
The broker’s own position type (
Kafka partition offsets, a Redis entry id, a byte
offset), constructed by the broker crate or captured from a delivered message via
Positioned::position.Source§type Error = PulsarError
type Error = PulsarError
The error returned when the broker rejects the reposition.
Source§async fn seek(&self, to: PulsarPosition) -> Result<(), PulsarError>
async fn seek(&self, to: PulsarPosition) -> Result<(), PulsarError>
Moves the subscription to
to; subsequent deliveries resume from there. Read moreAuto Trait Implementations§
impl Freeze for PulsarSeeker
impl RefUnwindSafe for PulsarSeeker
impl Send for PulsarSeeker
impl Sync for PulsarSeeker
impl Unpin for PulsarSeeker
impl UnsafeUnpin for PulsarSeeker
impl UnwindSafe for PulsarSeeker
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