pub struct GetBatchBuilder<T, SEQ = NoSeq, TIME = NoTime>{ /* private fields */ }Expand description
Builder for batch fetching messages from a stream.
Implementations§
Source§impl<T, SEQ, TIME> GetBatchBuilder<T, SEQ, TIME>
impl<T, SEQ, TIME> GetBatchBuilder<T, SEQ, TIME>
Source§impl<T> GetBatchBuilder<T, NoSeq, NoTime>
impl<T> GetBatchBuilder<T, NoSeq, NoTime>
Sourcepub fn sequence(self, seq: u64) -> GetBatchBuilder<T, WithSeq, NoTime>
pub fn sequence(self, seq: u64) -> GetBatchBuilder<T, WithSeq, NoTime>
Set the starting sequence number.
This is mutually exclusive with start_time.
Sourcepub fn start_time(
self,
start_time: OffsetDateTime,
) -> GetBatchBuilder<T, NoSeq, WithTime>
pub fn start_time( self, start_time: OffsetDateTime, ) -> GetBatchBuilder<T, NoSeq, WithTime>
Set the start time for time-based fetching.
This is mutually exclusive with seq.
Source§impl<T, SEQ, TIME> GetBatchBuilder<T, SEQ, TIME>
impl<T, SEQ, TIME> GetBatchBuilder<T, SEQ, TIME>
Sourcepub async fn send(self) -> Result<BatchStream, BatchFetchError>
pub async fn send(self) -> Result<BatchStream, BatchFetchError>
Send the batch fetch request and return a stream of messages.
Auto Trait Implementations§
impl<T, SEQ, TIME> Freeze for GetBatchBuilder<T, SEQ, TIME>where
T: Freeze,
impl<T, SEQ, TIME> RefUnwindSafe for GetBatchBuilder<T, SEQ, TIME>
impl<T, SEQ, TIME> Send for GetBatchBuilder<T, SEQ, TIME>
impl<T, SEQ, TIME> Sync for GetBatchBuilder<T, SEQ, TIME>
impl<T, SEQ, TIME> Unpin for GetBatchBuilder<T, SEQ, TIME>
impl<T, SEQ, TIME> UnwindSafe for GetBatchBuilder<T, SEQ, TIME>
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