pub struct FileSeeker { /* private fields */ }Expand description
Repositions a FileSubscriber while its stream runs; minted by
Seekable::seeker.
Trait Implementations§
Source§impl Clone for FileSeeker
impl Clone for FileSeeker
Source§fn clone(&self) -> FileSeeker
fn clone(&self) -> FileSeeker
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 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 Freeze for FileSeeker
impl RefUnwindSafe for FileSeeker
impl Send for FileSeeker
impl Sync for FileSeeker
impl Unpin for FileSeeker
impl UnsafeUnpin for FileSeeker
impl UnwindSafe 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