Struct graph_rs_sdk::http::DownloadClient
source · [−]pub struct DownloadClient<Client, Request> { /* private fields */ }
Expand description
Provides an abstraction for downloading files.
Implementations
pub fn new(
client: GraphRequest<Client, Body, Form>
) -> DownloadClient<HttpClient<RefCell<GraphRequest<Client, Body, Form>>>, RefCell<DownloadRequest>>
pub fn create_dir_all(
&self,
value: bool
) -> &DownloadClient<HttpClient<RefCell<GraphRequest<Client, Body, Form>>>, RefCell<DownloadRequest>>
pub fn overwrite_existing_file(
&self,
value: bool
) -> &DownloadClient<HttpClient<RefCell<GraphRequest<Client, Body, Form>>>, RefCell<DownloadRequest>>
pub fn set_file_name(
&self,
value: OsString
) -> &DownloadClient<HttpClient<RefCell<GraphRequest<Client, Body, Form>>>, RefCell<DownloadRequest>>
pub fn set_extension(
&self,
value: &str
) -> &DownloadClient<HttpClient<RefCell<GraphRequest<Client, Body, Form>>>, RefCell<DownloadRequest>>
pub fn set_dir<P>(
&self,
path: P
) -> &DownloadClient<HttpClient<RefCell<GraphRequest<Client, Body, Form>>>, RefCell<DownloadRequest>> where
P: AsRef<Path>,
impl DownloadClient<HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>, Arc<Mutex<DownloadRequest>>>
impl DownloadClient<HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>, Arc<Mutex<DownloadRequest>>>
pub fn new_async(
client: GraphRequest<Client, Body, Form>
) -> DownloadClient<HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>, Arc<Mutex<DownloadRequest>>>
pub async fn create_dir_all(
&'_ self,
value: bool
) -> &'_ DownloadClient<HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>, Arc<Mutex<DownloadRequest>>>
pub async fn overwrite_existing_file(
&'_ self,
value: bool
) -> &'_ DownloadClient<HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>, Arc<Mutex<DownloadRequest>>>
pub async fn set_file_name(
&'_ self,
value: OsString
) -> &'_ DownloadClient<HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>, Arc<Mutex<DownloadRequest>>>
pub async fn set_extension(
&'_ self,
value: &'_ str
) -> &'_ DownloadClient<HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>, Arc<Mutex<DownloadRequest>>>
pub async fn set_dir<P>(
&'_ self,
path: P
) -> &'_ DownloadClient<HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>, Arc<Mutex<DownloadRequest>>> where
P: AsRef<Path>,
Auto Trait Implementations
impl<Client, Request> RefUnwindSafe for DownloadClient<Client, Request> where
Client: RefUnwindSafe,
Request: RefUnwindSafe,
impl<Client, Request> Send for DownloadClient<Client, Request> where
Client: Send,
Request: Send,
impl<Client, Request> Sync for DownloadClient<Client, Request> where
Client: Sync,
Request: Sync,
impl<Client, Request> Unpin for DownloadClient<Client, Request> where
Client: Unpin,
Request: Unpin,
impl<Client, Request> UnwindSafe for DownloadClient<Client, Request> where
Client: UnwindSafe,
Request: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more