pub enum PagerError<E> {
Fetch(E),
InvalidCursor(String),
}Expand description
Error type for pagination operations.
This enum wraps both fetcher errors and cursor decoding failures, ensuring that invalid cursors are not silently ignored.
Variants§
Fetch(E)
Error from the fetcher function.
InvalidCursor(String)
Invalid cursor string that failed to decode.
Trait Implementations§
Source§impl<E: Debug> Debug for PagerError<E>
impl<E: Debug> Debug for PagerError<E>
Source§impl<E: Display> Display for PagerError<E>
impl<E: Display> Display for PagerError<E>
Source§impl<E: Error + 'static> Error for PagerError<E>
impl<E: Error + 'static> Error for PagerError<E>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<E> Freeze for PagerError<E>where
E: Freeze,
impl<E> RefUnwindSafe for PagerError<E>where
E: RefUnwindSafe,
impl<E> Send for PagerError<E>where
E: Send,
impl<E> Sync for PagerError<E>where
E: Sync,
impl<E> Unpin for PagerError<E>where
E: Unpin,
impl<E> UnsafeUnpin for PagerError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for PagerError<E>where
E: 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
Source§impl<T> WithSecurityContext for T
impl<T> WithSecurityContext for T
Source§fn security_ctx<'a>(&'a self, ctx: &'a SecurityContext) -> Secured<'a, T>
fn security_ctx<'a>(&'a self, ctx: &'a SecurityContext) -> Secured<'a, T>
Binds a security context to this client, returning a
Secured wrapper. Read more