[][src]Struct graph_http::DownloadClient

pub struct DownloadClient<Client, Request> { /* fields omitted */ }

Provides an abstraction for downloading files.

Implementations

impl DownloadClient<HttpClient<RefCell<GraphRequest<Client, Body, Form>>>, RefCell<DownloadRequest>>[src]

pub fn new(client: BlockingClient) -> BlockingDownload[src]

pub fn create_dir_all(&self, value: bool) -> &Self[src]

pub fn is_create_dir_all(&self) -> bool[src]

pub fn overwrite_existing_file(&self, value: bool) -> &Self[src]

pub fn is_overwrite_existing_file(&self) -> bool[src]

pub fn rename(&self, value: OsString) -> &Self[src]

pub fn set_extension(&self, value: &str) -> &Self[src]

pub fn set_dir<P: AsRef<Path>>(&self, path: P) -> &Self[src]

pub fn directory(&self) -> PathBuf[src]

pub fn file_name(&self) -> Option<OsString>[src]

pub fn extension(&self) -> Option<String>[src]

pub fn url(&self) -> GraphUrl[src]

pub fn format(&self, format: &str)[src]

pub fn send(self) -> GraphResult<PathBuf>[src]

impl DownloadClient<HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>, Arc<Mutex<DownloadRequest>>>[src]

pub fn new_async(client: GraphRequest<Client, Body, Form>) -> AsyncDownload[src]

pub async fn create_dir_all(&self, value: bool) -> &Self[src]

pub async fn is_create_dir_all(&self) -> bool[src]

pub async fn overwrite_existing_file(&self, value: bool) -> &Self[src]

pub async fn is_overwrite_existing_file(&self) -> bool[src]

pub async fn rename(&self, value: OsString) -> &Self[src]

pub async fn set_extension(&self, value: &str) -> &Self[src]

pub async fn set_dir<P: AsRef<Path>>(&self, path: P) -> &Self[src]

pub async fn directory(&self) -> PathBuf[src]

pub async fn file_name(&self) -> Option<OsString>[src]

pub async fn extension(&self) -> Option<String>[src]

pub async fn url(&self) -> GraphUrl[src]

pub async fn format(&self, format: &str)[src]

pub async fn send(self) -> GraphResult<PathBuf>[src]

Auto Trait Implementations

impl<Client, Request> RefUnwindSafe for DownloadClient<Client, Request> where
    Client: RefUnwindSafe,
    Request: RefUnwindSafe
[src]

impl<Client, Request> Send for DownloadClient<Client, Request> where
    Client: Send,
    Request: Send
[src]

impl<Client, Request> Sync for DownloadClient<Client, Request> where
    Client: Sync,
    Request: Sync
[src]

impl<Client, Request> Unpin for DownloadClient<Client, Request> where
    Client: Unpin,
    Request: Unpin
[src]

impl<Client, Request> UnwindSafe for DownloadClient<Client, Request> where
    Client: UnwindSafe,
    Request: UnwindSafe
[src]

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> Instrument for T[src]

impl<T> Instrument 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.