Struct onedrive_api::TrackChangeFetcher [−][src]
pub struct TrackChangeFetcher { /* fields omitted */ }The page fetcher for tracking operations with Iterator interface.
See also
Implementations
impl TrackChangeFetcher[src]
impl TrackChangeFetcher[src]pub fn resume_from(next_url: String) -> Self[src]
Resume a fetching process from url.
The url should be from TrackChangeFetcher::next_url.
pub fn next_url(&self) -> Option<&str>[src]
Try to get the url to the next page.
Used for resuming the fetching progress.
Error
Will success only if there are more pages and the first page is already readed.
Note
The first page data from
OneDrive::track_changes_from_initial_with_option
will be cached and have no idempotent url to resume/re-fetch.
pub fn delta_url(&self) -> Option<&str>[src]
Try to the delta url representing a snapshot of current track change operation.
Used for tracking changes from this snapshot (rather than initial) later,
using OneDrive::track_changes_from_delta_url.
Error
Will success only if there are no more pages.
See also
pub async fn fetch_next_page(
&mut self,
onedrive: &OneDrive
) -> Result<Option<Vec<DriveItem>>>[src]
&mut self,
onedrive: &OneDrive
) -> Result<Option<Vec<DriveItem>>>
Fetch the next page, or None if reaches the end.
pub async fn fetch_all(
self,
onedrive: &OneDrive
) -> Result<(Vec<DriveItem>, String)>[src]
self,
onedrive: &OneDrive
) -> Result<(Vec<DriveItem>, String)>
Fetch all rest pages, collect all items, and also return delta_url.
Errors
Any error occurs when fetching will lead to an failure, and all progress will be lost.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TrackChangeFetcher
impl RefUnwindSafe for TrackChangeFetcherimpl Send for TrackChangeFetcher
impl Send for TrackChangeFetcherimpl Sync for TrackChangeFetcher
impl Sync for TrackChangeFetcherimpl Unpin for TrackChangeFetcher
impl Unpin for TrackChangeFetcherimpl UnwindSafe for TrackChangeFetcher
impl UnwindSafe for TrackChangeFetcherBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]