pub struct Pager<P: PagedResponse, E> { /* private fields */ }Expand description
Fetches pages and retains unused items between bounded collections.
Implementations§
Auto Trait Implementations§
impl<P, E> !RefUnwindSafe for Pager<P, E>
impl<P, E> !Sync for Pager<P, E>
impl<P, E> !UnwindSafe for Pager<P, E>
impl<P, E> Freeze for Pager<P, E>
impl<P, E> Send for Pager<P, E>
impl<P, E> Unpin for Pager<P, E>
impl<P, E> UnsafeUnpin for Pager<P, E>where
Box<dyn FnMut(Option<<P as PagedResponse>::Cursor>) -> Pin<Box<dyn Future<Output = Result<P, E>> + Send>> + Send>: UnsafeUnpin,
PagerState<<P as PagedResponse>::Cursor>: UnsafeUnpin,
Option<P>: UnsafeUnpin,
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