[][src]Struct onedrive_api::TrackChangeFetcher

pub struct TrackChangeFetcher<'t> { /* fields omitted */ }

The page fetcher for tracking operations with Iterator interface.

See also

OneDrive::track_changes_from_initial

OneDrive::track_changes_from_delta_url

Methods

impl<'t> TrackChangeFetcher<'t>[src]

pub fn resume_from(token: &'t str, 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

OneDrive::track_changes_from_delta_url

Microsoft Docs

pub fn fetch_next_page(
    &mut self
) -> impl Api<Response = Option<Vec<DriveItem>>> + '_
[src]

Fetch the next page, or None if reaches the end.

pub fn fetch_all(self) -> impl Api<Response = (Vec<DriveItem>, String)> + 't[src]

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

impl<'t> Debug for TrackChangeFetcher<'t>[src]

Auto Trait Implementations

impl<'t> Send for TrackChangeFetcher<'t>

impl<'t> Sync for TrackChangeFetcher<'t>

impl<'t> Unpin for TrackChangeFetcher<'t>

impl<'t> UnwindSafe for TrackChangeFetcher<'t>

impl<'t> RefUnwindSafe for TrackChangeFetcher<'t>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err