pub struct BackgroundDownloader(/* private fields */);
Implementations§
§impl BackgroundDownloader
impl BackgroundDownloader
pub fn new() -> Result<Self>
pub fn CreateDownload<P0, P1>(
&self,
uri: P0,
resultfile: P1
) -> Result<DownloadOperation>where
P0: IntoParam<Uri>,
P1: IntoParam<IStorageFile>,
pub fn CreateDownloadFromFile<P0, P1, P2>( &self, uri: P0, resultfile: P1, requestbodyfile: P2 ) -> Result<DownloadOperation>
pub fn CreateDownloadAsync<P0, P1, P2>( &self, uri: P0, resultfile: P1, requestbodystream: P2 ) -> Result<IAsyncOperation<DownloadOperation>>
pub fn TransferGroup(&self) -> Result<BackgroundTransferGroup>
pub fn SetTransferGroup<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<BackgroundTransferGroup>,
pub fn SuccessToastNotification(&self) -> Result<ToastNotification>
pub fn SetSuccessToastNotification<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<ToastNotification>,
pub fn FailureToastNotification(&self) -> Result<ToastNotification>
pub fn SetFailureToastNotification<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<ToastNotification>,
pub fn SuccessTileNotification(&self) -> Result<TileNotification>
pub fn SetSuccessTileNotification<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<TileNotification>,
pub fn FailureTileNotification(&self) -> Result<TileNotification>
pub fn SetFailureTileNotification<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<TileNotification>,
pub fn CompletionGroup(&self) -> Result<BackgroundTransferCompletionGroup>
pub fn CreateWithCompletionGroup<P0>(
completiongroup: P0
) -> Result<BackgroundDownloader>where
P0: IntoParam<BackgroundTransferCompletionGroup>,
pub fn GetCurrentDownloadsAsync( ) -> Result<IAsyncOperation<IVectorView<DownloadOperation>>>
pub fn GetCurrentDownloadsForGroupAsync( group: &HSTRING ) -> Result<IAsyncOperation<IVectorView<DownloadOperation>>>
pub fn GetCurrentDownloadsForTransferGroupAsync<P0>(
group: P0
) -> Result<IAsyncOperation<IVectorView<DownloadOperation>>>where
P0: IntoParam<BackgroundTransferGroup>,
pub fn RequestUnconstrainedDownloadsAsync<P0>(
operations: P0
) -> Result<IAsyncOperation<UnconstrainedTransferRequestResult>>where
P0: IntoParam<IIterable<DownloadOperation>>,
pub fn SetRequestHeader( &self, headername: &HSTRING, headervalue: &HSTRING ) -> Result<()>
pub fn ServerCredential(&self) -> Result<PasswordCredential>
pub fn SetServerCredential<P0>(&self, credential: P0) -> Result<()>where
P0: IntoParam<PasswordCredential>,
pub fn ProxyCredential(&self) -> Result<PasswordCredential>
pub fn SetProxyCredential<P0>(&self, credential: P0) -> Result<()>where
P0: IntoParam<PasswordCredential>,
pub fn Method(&self) -> Result<HSTRING>
pub fn SetMethod(&self, value: &HSTRING) -> Result<()>
pub fn Group(&self) -> Result<HSTRING>
pub fn SetGroup(&self, value: &HSTRING) -> Result<()>
pub fn CostPolicy(&self) -> Result<BackgroundTransferCostPolicy>
pub fn SetCostPolicy(&self, value: BackgroundTransferCostPolicy) -> Result<()>
Trait Implementations§
§impl Clone for BackgroundDownloader
impl Clone for BackgroundDownloader
§fn clone(&self) -> BackgroundDownloader
fn clone(&self) -> BackgroundDownloader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for BackgroundDownloader
impl Debug for BackgroundDownloader
§impl From<&BackgroundDownloader> for &IInspectable
impl From<&BackgroundDownloader> for &IInspectable
§fn from(value: &BackgroundDownloader) -> Self
fn from(value: &BackgroundDownloader) -> Self
Converts to this type from the input type.
§impl From<&BackgroundDownloader> for &IUnknown
impl From<&BackgroundDownloader> for &IUnknown
§fn from(value: &BackgroundDownloader) -> Self
fn from(value: &BackgroundDownloader) -> Self
Converts to this type from the input type.
§impl From<BackgroundDownloader> for IInspectable
impl From<BackgroundDownloader> for IInspectable
§fn from(value: BackgroundDownloader) -> Self
fn from(value: BackgroundDownloader) -> Self
Converts to this type from the input type.
§impl From<BackgroundDownloader> for IUnknown
impl From<BackgroundDownloader> for IUnknown
§fn from(value: BackgroundDownloader) -> Self
fn from(value: BackgroundDownloader) -> Self
Converts to this type from the input type.
§impl Interface for BackgroundDownloader
impl Interface for BackgroundDownloader
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for BackgroundDownloader
impl PartialEq for BackgroundDownloader
§fn eq(&self, other: &BackgroundDownloader) -> bool
fn eq(&self, other: &BackgroundDownloader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BackgroundDownloader
impl Send for BackgroundDownloader
impl StructuralPartialEq for BackgroundDownloader
impl Sync for BackgroundDownloader
Auto Trait Implementations§
impl RefUnwindSafe for BackgroundDownloader
impl Unpin for BackgroundDownloader
impl UnwindSafe for BackgroundDownloader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more