pub struct CursorPager<T, E, F, Fut>{ /* private fields */ }Expand description
A cursor-based pager that implements Stream for paginated items.
This pager manages cursor state internally and fetches pages on-demand, yielding individual items from the stream.
§Type Parameters
T- The item typeE- The error typeF- The fetcher function typeFut- The future returned by the fetcher
Implementations§
Source§impl<T, E, F, Fut> CursorPager<T, E, F, Fut>
impl<T, E, F, Fut> CursorPager<T, E, F, Fut>
Sourcepub fn new(base_query: ODataQuery, fetcher: F) -> Self
pub fn new(base_query: ODataQuery, fetcher: F) -> Self
Trait Implementations§
Source§impl<T, E, F, Fut> Stream for CursorPager<T, E, F, Fut>
impl<T, E, F, Fut> Stream for CursorPager<T, E, F, Fut>
Source§type Item = Result<T, PagerError<E>>
type Item = Result<T, PagerError<E>>
Values yielded by the stream.
impl<'__pin, T, E, F, Fut> Unpin for CursorPager<T, E, F, Fut>
Auto Trait Implementations§
impl<T, E, F, Fut> Freeze for CursorPager<T, E, F, Fut>
impl<T, E, F, Fut> RefUnwindSafe for CursorPager<T, E, F, Fut>
impl<T, E, F, Fut> Send for CursorPager<T, E, F, Fut>
impl<T, E, F, Fut> Sync for CursorPager<T, E, F, Fut>
impl<T, E, F, Fut> UnsafeUnpin for CursorPager<T, E, F, Fut>where
F: UnsafeUnpin,
Fut: UnsafeUnpin,
impl<T, E, F, Fut> UnwindSafe for CursorPager<T, E, F, Fut>
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