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