Type Definition graph_http::AsyncDownload

source ·
pub type AsyncDownload = DownloadClient<HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>, Arc<Mutex<DownloadRequest>>>;

Implementations§

source§

impl AsyncDownload

source

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

source

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

source

pub fn is_create_dir_all(&self) -> bool

source

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

source

pub fn is_overwrite_existing_file(&self) -> bool

source

pub fn set_file_name(&self, value: OsString) -> &Self

source

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

source

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

source

pub fn directory(&self) -> PathBuf

source

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

source

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

source

pub fn url(&self) -> GraphUrl

source

pub fn format(&self, format: &str)

source

pub async fn send(self) -> Result<PathBuf, AsyncDownloadError>