[][src]Struct onedrive_api::CopyProgressMonitor

pub struct CopyProgressMonitor { /* fields omitted */ }

The monitor for checking the progress of a asynchronous copy operation.

Notes

This struct is always present. But since retrieving copy progress requires beta API, it is useless due to the lack of method fetch_progress if feature beta is not enabled.

See also

OneDrive::copy

Microsoft docs

Methods

impl CopyProgressMonitor[src]

pub fn from_monitor_url(monitor_url: String) -> Self[src]

Make a progress monitor using existing monitor_url.

monitor_url should be got from CopyProgressMonitor::monitor_url

pub fn monitor_url(&self) -> &str[src]

Get the monitor url.

pub async fn fetch_progress<'_, '_>(
    &'_ self,
    onedrive: &'_ OneDrive
) -> Result<CopyProgress>
[src]

Fetch the copy progress. [Beta]

See also

CopyProgress

Trait Implementations

impl Debug for CopyProgressMonitor[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Error = Infallible

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.