[−][src]Struct graph_http::DownloadClient
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]
Client: RefUnwindSafe,
Request: RefUnwindSafe,
impl<Client, Request> Send for DownloadClient<Client, Request> where
Client: Send,
Request: Send,
[src]
Client: Send,
Request: Send,
impl<Client, Request> Sync for DownloadClient<Client, Request> where
Client: Sync,
Request: Sync,
[src]
Client: Sync,
Request: Sync,
impl<Client, Request> Unpin for DownloadClient<Client, Request> where
Client: Unpin,
Request: Unpin,
[src]
Client: Unpin,
Request: Unpin,
impl<Client, Request> UnwindSafe for DownloadClient<Client, Request> where
Client: UnwindSafe,
Request: UnwindSafe,
[src]
Client: UnwindSafe,
Request: UnwindSafe,
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>,