pub struct TailPage<T> {
pub items: Vec<T>,
pub next: u64,
pub done: bool,
}Expand description
One page of a tail read.
Fields§
§items: Vec<T>Events from the requested cursor to the end of the log.
next: u64The cursor to pass to the next read.
done: boolWhether the log is finished. When true, no more events will ever arrive; the consumer can stop without a close-out drain.
Implementations§
Trait Implementations§
impl<T: PartialEq> StructuralPartialEq for TailPage<T>
Auto Trait Implementations§
impl<T> Freeze for TailPage<T>
impl<T> RefUnwindSafe for TailPage<T>where
Vec<T>: RefUnwindSafe,
impl<T> Send for TailPage<T>
impl<T> Sync for TailPage<T>
impl<T> Unpin for TailPage<T>
impl<T> UnsafeUnpin for TailPage<T>where
Vec<T>: UnsafeUnpin,
impl<T> UnwindSafe for TailPage<T>where
Vec<T>: UnwindSafe,
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