Struct BackgroundUploader
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: Param<PasswordCredential>,
pub fn ProxyCredential(&self) -> Result<PasswordCredential>
pub fn SetProxyCredential<P0>(&self, credential: P0) -> Result<()>where
P0: Param<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: Param<Uri>,
P1: Param<IStorageFile>,
pub fn CreateUploadFromStreamAsync<P0, P1>(
&self,
uri: P0,
sourcestream: P1,
) -> Result<IAsyncOperation<UploadOperation>>where
P0: Param<Uri>,
P1: Param<IInputStream>,
pub fn CreateUploadWithFormDataAndAutoBoundaryAsync<P0, P1>(
&self,
uri: P0,
parts: P1,
) -> Result<IAsyncOperation<UploadOperation>>where
P0: Param<Uri>,
P1: Param<IIterable<BackgroundTransferContentPart>>,
pub fn CreateUploadWithSubTypeAsync<P0, P1>(
&self,
uri: P0,
parts: P1,
subtype: &HSTRING,
) -> Result<IAsyncOperation<UploadOperation>>where
P0: Param<Uri>,
P1: Param<IIterable<BackgroundTransferContentPart>>,
pub fn CreateUploadWithSubTypeAndBoundaryAsync<P0, P1>(
&self,
uri: P0,
parts: P1,
subtype: &HSTRING,
boundary: &HSTRING,
) -> Result<IAsyncOperation<UploadOperation>>where
P0: Param<Uri>,
P1: Param<IIterable<BackgroundTransferContentPart>>,
pub fn TransferGroup(&self) -> Result<BackgroundTransferGroup>
pub fn SetTransferGroup<P0>(&self, value: P0) -> Result<()>where
P0: Param<BackgroundTransferGroup>,
pub fn SuccessToastNotification(&self) -> Result<ToastNotification>
pub fn SetSuccessToastNotification<P0>(&self, value: P0) -> Result<()>where
P0: Param<ToastNotification>,
pub fn FailureToastNotification(&self) -> Result<ToastNotification>
pub fn SetFailureToastNotification<P0>(&self, value: P0) -> Result<()>where
P0: Param<ToastNotification>,
pub fn SuccessTileNotification(&self) -> Result<TileNotification>
pub fn SetSuccessTileNotification<P0>(&self, value: P0) -> Result<()>where
P0: Param<TileNotification>,
pub fn FailureTileNotification(&self) -> Result<TileNotification>
pub fn SetFailureTileNotification<P0>(&self, value: P0) -> Result<()>where
P0: Param<TileNotification>,
pub fn CompletionGroup(&self) -> Result<BackgroundTransferCompletionGroup>
pub fn CreateWithCompletionGroup<P0>(
completiongroup: P0,
) -> Result<BackgroundUploader>where
P0: Param<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: Param<BackgroundTransferGroup>,
pub fn RequestUnconstrainedUploadsAsync<P0>(
operations: P0,
) -> Result<IAsyncOperation<UnconstrainedTransferRequestResult>>where
P0: Param<IIterable<UploadOperation>>,
Trait Implementations§
§impl CanInto<IBackgroundTransferBase> for BackgroundUploader
impl CanInto<IBackgroundTransferBase> for BackgroundUploader
§impl CanInto<IInspectable> for BackgroundUploader
impl CanInto<IInspectable> for BackgroundUploader
§impl CanInto<IUnknown> for BackgroundUploader
impl CanInto<IUnknown> for BackgroundUploader
§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
§const IID: GUID = <IBackgroundUploader as windows_core::Interface>::IID
const IID: GUID = <IBackgroundUploader as windows_core::Interface>::IID
The
GUID
associated with the interface.§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.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§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§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for BackgroundUploader
impl PartialEq for BackgroundUploader
impl Eq for BackgroundUploader
impl Send for BackgroundUploader
impl StructuralPartialEq for BackgroundUploader
impl Sync for BackgroundUploader
Auto Trait Implementations§
impl Freeze for BackgroundUploader
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