pub struct Page<K> {
pub after: Option<K>,
pub limit: usize,
pub bytes: usize,
}Expand description
Which rows of a listing to visit: those after the row whose key is
after, in the listing’s key order, at most limit of them, and no
more once their text reaches bytes. A listing reads a page with one
query that starts at after in the table’s primary key, so a caller can
walk a table a page at a time, holding one page, and resume from the
last key it saw.
Fields§
§after: Option<K>The key of the last row already seen, or None to start at the
first row.
limit: usizeThe most rows to visit.
bytes: usizeThe text to visit: the page stops after the row that brings the bytes of its rows’ keys and documents to this, so it always visits a row when there is one, and holds less than this and one row.
Implementations§
Trait Implementations§
impl<K: Copy> Copy for Page<K>
impl<K: Eq> Eq for Page<K>
impl<K: PartialEq> StructuralPartialEq for Page<K>
Auto Trait Implementations§
impl<K> Forget for Page<K>
impl<K> Freeze for Page<K>
impl<K> Move for Page<K>
impl<K> RefUnwindSafe for Page<K>where
Option<K>: RefUnwindSafe,
impl<K> Send for Page<K>
impl<K> Sync for Page<K>
impl<K> Unpin for Page<K>
impl<K> UnsafeUnpin for Page<K>where
Option<K>: UnsafeUnpin,
impl<K> UnwindSafe for Page<K>where
Option<K>: 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