[−][src]Struct onedrive_api::ListChildrenFetcher
Implementations
impl ListChildrenFetcher
[src]
pub fn resume_from(next_url: String) -> Self
[src]
Resume a fetching process from url from
ListChildrenFetcher::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::list_children_with_option
will be cached and have no idempotent url to resume/re-fetch.
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>>
[src]
Fetch all rest pages and collect all items.
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 ListChildrenFetcher
[src]
impl Send for ListChildrenFetcher
[src]
impl Sync for ListChildrenFetcher
[src]
impl Unpin for ListChildrenFetcher
[src]
impl UnwindSafe for ListChildrenFetcher
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,