pub struct RangePage {
pub items: Vec<(Vec<u8>, Vec<u8>)>,
pub next_key: Option<Vec<u8>>,
}Expand description
Result of a cursor-based paginated range scan (forward or reverse).
Use next_key as the cursor for the next call to Engine::range_page or
Engine::range_rev_page. None means the scan is exhausted.
Fields§
§items: Vec<(Vec<u8>, Vec<u8>)>Decoded (key, value) pairs in ascending order for forward, descending for reverse.
next_key: Option<Vec<u8>>Cursor for the next page, or None when all items have been returned.
Trait Implementations§
Auto Trait Implementations§
impl Forget for RangePage
impl Freeze for RangePage
impl Move for RangePage
impl RefUnwindSafe for RangePage
impl Send for RangePage
impl Sync for RangePage
impl Unpin for RangePage
impl UnsafeUnpin for RangePage
impl UnwindSafe for RangePage
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