pub enum PaginationError {
Show 13 variants
PageZero,
PerPageZero,
PageLimitZero,
InvalidPreviousPage,
InvalidNextPage,
InvalidLastPage,
UnexpectedPage,
EmptyPageWithNextPage,
InvalidEntryCount,
PageSizeChanged,
TraversalChanged,
PageLimitExceeded,
Complete,
}Expand description
Pagination validation or transition error.
Variants§
PageZero
Page numbers are one-based.
PerPageZero
Per-page values are one-based.
PageLimitZero
The caller-selected page limit must be nonzero.
InvalidPreviousPage
The previous-page link is not immediately before the current page.
InvalidNextPage
The next-page link is not immediately after the current page.
InvalidLastPage
The last page contradicts the current page or continuation state.
UnexpectedPage
The response page differs from the page the cursor requested.
EmptyPageWithNextPage
A non-terminal empty page advertised another page.
InvalidEntryCount
The decoded entry count contradicts page or total-entry metadata.
PageSizeChanged
Response page size differs from the caller-bound request size.
TraversalChanged
Total entries or last page changed during one traversal.
PageLimitExceeded
Advancing would exceed the caller-selected page limit.
Complete
The cursor already reached its terminal page.
Trait Implementations§
Source§impl Clone for PaginationError
impl Clone for PaginationError
Source§fn clone(&self) -> PaginationError
fn clone(&self) -> PaginationError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PaginationError
Source§impl Debug for PaginationError
impl Debug for PaginationError
Source§impl Display for PaginationError
impl Display for PaginationError
impl Eq for PaginationError
Source§impl Error for PaginationError
impl Error for PaginationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()