pub struct WorkListIterator<'a> { /* private fields */ }Expand description
Allows iterating of deep page work request
Implementations§
Source§impl<'a> WorkListIterator<'a>
impl<'a> WorkListIterator<'a>
Sourcepub fn new(query: WorkListQuery, client: &'a Crossref) -> Self
pub fn new(query: WorkListQuery, client: &'a Crossref) -> Self
Create an iterator that deep pages query through client.
Sourcepub fn into_work_iter(self) -> WorkIterator<'a>
pub fn into_work_iter(self) -> WorkIterator<'a>
Flatten the paged results into an iterator over individual Work items.
Pages are fetched lazily, one request at a time, as the buffer drains.
Trait Implementations§
Source§impl Iterator for WorkListIterator<'_>
impl Iterator for WorkListIterator<'_>
Source§async fn next(&mut self) -> Option<Self::Item>
async fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value.
Source§fn size_hint(&self) -> (usize, Option<usize>)
fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator.
Source§fn map<B, F>(self, f: F) -> Map<Self, F>
fn map<B, F>(self, f: F) -> Map<Self, F>
Takes a closure and creates an iterator which calls that closure on each element.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for WorkListIterator<'a>
impl<'a> !UnwindSafe for WorkListIterator<'a>
impl<'a> Freeze for WorkListIterator<'a>
impl<'a> Send for WorkListIterator<'a>
impl<'a> Sync for WorkListIterator<'a>
impl<'a> Unpin for WorkListIterator<'a>
impl<'a> UnsafeUnpin for WorkListIterator<'a>
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