pub struct FileSeeker { /* private fields */ }Expand description
Repositions a FileSubscriber while its stream runs; minted by
Seekable::seeker, and carried to handlers by the
SeekHandle context key.
A seek through a handle that outlived the broker’s shutdown returns an error.
Implementations§
Source§impl FileSeeker
impl FileSeeker
Sourcepub fn stream_key(&self) -> &str
pub fn stream_key(&self) -> &str
The stream key of the subscription this handle repositions.
Trait Implementations§
Source§impl Clone for FileSeeker
impl Clone for FileSeeker
Source§impl Debug for FileSeeker
impl Debug for FileSeeker
Source§impl Seeker for FileSeeker
impl Seeker for FileSeeker
Source§type Position = FilePosition
type Position = FilePosition
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 = SeaFileError
type Error = SeaFileError
The error returned when the broker rejects the reposition.
Source§async fn seek(&self, to: FilePosition) -> Result<(), SeaFileError>
async fn seek(&self, to: FilePosition) -> Result<(), SeaFileError>
Moves the subscription to
to; subsequent deliveries resume from there. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for FileSeeker
impl !UnwindSafe for FileSeeker
impl Freeze for FileSeeker
impl Send for FileSeeker
impl Sync for FileSeeker
impl Unpin for FileSeeker
impl UnsafeUnpin for FileSeeker
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
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