pub enum WhichPage<ScanParams, PageSelector> {
First(ScanParams),
Next(PageSelector),
}
Expand description
Describes whether the client is beginning a new scan or resuming an existing one
In either case, this type provides access to consumer-defined parameters for
the particular type of request. See PaginationParams
for more
information.
Variants§
First(ScanParams)
Indicates that the client is beginning a new scan
ScanParams
are the consumer-defined parameters for beginning a new scan
(e.g., filters, sort options, etc.)
Next(PageSelector)
Indicates that the client is resuming a previous scan
PageSelector
are the consumer-defined parameters for resuming a
previous scan (e.g., any scan parameters, plus a marker to indicate the
last result seen by the client).
Trait Implementations§
Auto Trait Implementations§
impl<ScanParams, PageSelector> RefUnwindSafe for WhichPage<ScanParams, PageSelector>where
PageSelector: RefUnwindSafe,
ScanParams: RefUnwindSafe,
impl<ScanParams, PageSelector> Send for WhichPage<ScanParams, PageSelector>
impl<ScanParams, PageSelector> Sync for WhichPage<ScanParams, PageSelector>
impl<ScanParams, PageSelector> Unpin for WhichPage<ScanParams, PageSelector>
impl<ScanParams, PageSelector> UnwindSafe for WhichPage<ScanParams, PageSelector>where
PageSelector: UnwindSafe,
ScanParams: 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