pub struct History { /* private fields */ }Expand description
Builder for Messages::history. .await yields the first
Page<Message>; into_stream follows all pages.
Implementations§
Source§impl History
impl History
Sourcepub fn start(self, start: impl Into<Timestamp>) -> Self
pub fn start(self, start: impl Into<Timestamp>) -> Self
Earliest timestamp to include (epoch millis; inclusive).
Sourcepub fn end(self, end: impl Into<Timestamp>) -> Self
pub fn end(self, end: impl Into<Timestamp>) -> Self
Latest timestamp to include (epoch millis; exclusive).
Sourcepub fn direction(self, direction: Direction) -> Self
pub fn direction(self, direction: Direction) -> Self
Ordering. Defaults to Direction::Backwards (newest first).
Sourcepub fn from_serial(self, serial: impl Into<Serial>) -> Self
pub fn from_serial(self, serial: impl Into<Serial>) -> Self
Region-scoped serial to page from.
Trait Implementations§
Source§impl IntoFuture for History
impl IntoFuture for History
Source§type Output = Result<Page<Message>, Error>
type Output = Result<Page<Message>, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <History as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <History as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for History
impl !UnwindSafe for History
impl Freeze for History
impl Send for History
impl Sync for History
impl Unpin for History
impl UnsafeUnpin for History
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