pub struct PageQuery {
pub after: u64,
pub limit: usize,
pub stage: Option<StageFilter>,
pub tail: Option<usize>,
}Expand description
One read of the captured log: everything after a cursor, optionally narrowed to a stage and trimmed to a trailing window.
Fields§
§after: u64Only records with sequence > after.
limit: usizeHard cap on returned entries; also the cap on tail.
stage: Option<StageFilter>Only records this filter accepts.
tail: Option<usize>Keep the last N accepted records instead of the first N. Reading runs to the end of the file, so the page is always complete.
Trait Implementations§
impl Eq for PageQuery
impl StructuralPartialEq for PageQuery
Auto Trait Implementations§
impl Freeze for PageQuery
impl RefUnwindSafe for PageQuery
impl Send for PageQuery
impl Sync for PageQuery
impl Unpin for PageQuery
impl UnsafeUnpin for PageQuery
impl UnwindSafe for PageQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.