pub struct BackgroundUploader(/* private fields */);
Implementations§
§impl BackgroundUploader
impl BackgroundUploader
pub fn new() -> Result<Self>
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<()>
pub fn CreateUpload<P0, P1>(
&self,
uri: P0,
sourcefile: P1
) -> Result<UploadOperation>where
P0: IntoParam<Uri>,
P1: IntoParam<IStorageFile>,
pub fn CreateUploadFromStreamAsync<P0, P1>(
&self,
uri: P0,
sourcestream: P1
) -> Result<IAsyncOperation<UploadOperation>>where
P0: IntoParam<Uri>,
P1: IntoParam<IInputStream>,
pub fn CreateUploadWithFormDataAndAutoBoundaryAsync<P0, P1>( &self, uri: P0, parts: P1 ) -> Result<IAsyncOperation<UploadOperation>>
pub fn CreateUploadWithSubTypeAsync<P0, P1>( &self, uri: P0, parts: P1, subtype: &HSTRING ) -> Result<IAsyncOperation<UploadOperation>>
pub fn CreateUploadWithSubTypeAndBoundaryAsync<P0, P1>( &self, uri: P0, parts: P1, subtype: &HSTRING, boundary: &HSTRING ) -> Result<IAsyncOperation<UploadOperation>>
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<BackgroundUploader>where
P0: IntoParam<BackgroundTransferCompletionGroup>,
pub fn GetCurrentUploadsAsync( ) -> Result<IAsyncOperation<IVectorView<UploadOperation>>>
pub fn GetCurrentUploadsForGroupAsync( group: &HSTRING ) -> Result<IAsyncOperation<IVectorView<UploadOperation>>>
pub fn GetCurrentUploadsForTransferGroupAsync<P0>(
group: P0
) -> Result<IAsyncOperation<IVectorView<UploadOperation>>>where
P0: IntoParam<BackgroundTransferGroup>,
pub fn RequestUnconstrainedUploadsAsync<P0>(
operations: P0
) -> Result<IAsyncOperation<UnconstrainedTransferRequestResult>>where
P0: IntoParam<IIterable<UploadOperation>>,
Trait Implementations§
§impl Clone for BackgroundUploader
impl Clone for BackgroundUploader
§fn clone(&self) -> BackgroundUploader
fn clone(&self) -> BackgroundUploader
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 BackgroundUploader
impl Debug for BackgroundUploader
§impl From<&BackgroundUploader> for &IInspectable
impl From<&BackgroundUploader> for &IInspectable
§fn from(value: &BackgroundUploader) -> Self
fn from(value: &BackgroundUploader) -> Self
Converts to this type from the input type.
§impl From<&BackgroundUploader> for &IUnknown
impl From<&BackgroundUploader> for &IUnknown
§fn from(value: &BackgroundUploader) -> Self
fn from(value: &BackgroundUploader) -> Self
Converts to this type from the input type.
§impl From<BackgroundUploader> for IInspectable
impl From<BackgroundUploader> for IInspectable
§fn from(value: BackgroundUploader) -> Self
fn from(value: BackgroundUploader) -> Self
Converts to this type from the input type.
§impl From<BackgroundUploader> for IUnknown
impl From<BackgroundUploader> for IUnknown
§fn from(value: BackgroundUploader) -> Self
fn from(value: BackgroundUploader) -> Self
Converts to this type from the input type.
§impl Interface for BackgroundUploader
impl Interface for BackgroundUploader
§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 BackgroundUploader
impl PartialEq for BackgroundUploader
§fn eq(&self, other: &BackgroundUploader) -> bool
fn eq(&self, other: &BackgroundUploader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BackgroundUploader
impl Send for BackgroundUploader
impl StructuralPartialEq for BackgroundUploader
impl Sync for BackgroundUploader
Auto Trait Implementations§
impl RefUnwindSafe for BackgroundUploader
impl Unpin for BackgroundUploader
impl UnwindSafe for BackgroundUploader
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