pub enum PaginationError {
Show 35 variants
ZeroLimit,
StateLimitTooLarge,
PageZero,
PageSizeZero,
InvalidPreviousPage,
InvalidNextPage,
InvalidLastPage,
UnexpectedPosition,
EmptyPageWithContinuation,
InvalidEntryCount,
PageSizeChanged,
TraversalChanged,
RequestBudgetExceeded,
ItemBudgetExceeded,
SnapshotRequired,
SnapshotIdEmpty,
SnapshotIdTooLong,
SnapshotForbidden,
SnapshotChanged,
Complete,
MissingState,
StateTooLong,
OutputTooSmall,
HistoryBudgetExceeded,
CursorCycle,
CursorDigestCollision,
CursorDigestChanged,
InvalidProviderLink,
ProviderLinkSchemeChanged,
ProviderLinkAuthorityChanged,
ProviderLinkUserinfo,
ProviderLinkFragment,
ProviderLinkPathChanged,
ProviderLinkMethodChanged,
ProviderLinkOperationChanged,
}Expand description
Pagination validation or transition error.
Variants§
ZeroLimit
A required numeric bound was zero.
StateLimitTooLarge
An opaque state bound exceeds the SDK hard limit.
PageZero
A page number was zero.
PageSizeZero
A page size was zero.
InvalidPreviousPage
Previous-page metadata was not immediately before the current page.
InvalidNextPage
Next-page metadata was not immediately after the current page.
InvalidLastPage
Last-page metadata contradicted the continuation state.
UnexpectedPosition
A response did not match the requested page or offset.
EmptyPageWithContinuation
A nonterminal response contained no entries.
InvalidEntryCount
Entry count or total metadata was incoherent.
PageSizeChanged
Provider page size changed during one traversal.
TraversalChanged
Stable provider traversal metadata changed.
RequestBudgetExceeded
A continuation would exceed the request budget.
ItemBudgetExceeded
Accepted entries would exceed the item budget.
SnapshotRequired
A required provider snapshot identifier was omitted.
SnapshotIdEmpty
A provider snapshot identifier was empty.
SnapshotIdTooLong
A provider snapshot identifier exceeded its exact-byte bound.
SnapshotForbidden
A provider snapshot identifier was supplied when forbidden.
SnapshotChanged
Snapshot presence or value changed during one traversal.
Complete
The traversal has no continuation.
MissingState
Opaque continuation state was omitted or empty.
StateTooLong
Opaque continuation state exceeds its caller-selected limit.
OutputTooSmall
Caller-owned destination storage is too small.
HistoryBudgetExceeded
Cursor history has no remaining entry or byte budget.
CursorCycle
A cursor repeated an earlier exact value.
CursorDigestCollision
One digest identified two distinct cursor values.
CursorDigestChanged
One cursor value was supplied with different digests.
InvalidProviderLink
A provider link was not valid UTF-8 or request-target syntax.
ProviderLinkSchemeChanged
A provider link changed the bound network scheme.
ProviderLinkAuthorityChanged
A provider link changed the bound authority.
ProviderLinkUserinfo
A provider link contained user information.
ProviderLinkFragment
A provider link contained a fragment.
ProviderLinkPathChanged
A provider link changed the bound operation path.
ProviderLinkMethodChanged
A provider link was used with another HTTP method.
ProviderLinkOperationChanged
A provider link was used with another operation identifier.
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()