pub struct PulsarSeeker { /* private fields */ }Expand description
Repositions a subscription 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.
One type serves both transports, so a service that repositions itself reads the same
SeekHandle key whether it runs against a server or in process under
the test harness.
Trait Implementations§
Source§impl Clone for PulsarSeeker
impl Clone for PulsarSeeker
Source§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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