Struct windows::Networking::BackgroundTransfer::UploadOperation
pub struct UploadOperation(/* private fields */);
Implementations§
§impl UploadOperation
impl UploadOperation
pub fn Guid(&self) -> Result<GUID>
pub fn RequestedUri(&self) -> Result<Uri>
pub fn Method(&self) -> Result<HSTRING>
pub fn Group(&self) -> Result<HSTRING>
pub fn CostPolicy(&self) -> Result<BackgroundTransferCostPolicy>
pub fn SetCostPolicy(&self, value: BackgroundTransferCostPolicy) -> Result<()>
pub fn GetResultStreamAt(&self, position: u64) -> Result<IInputStream>
pub fn GetResponseInformation(&self) -> Result<ResponseInformation>
pub fn Priority(&self) -> Result<BackgroundTransferPriority>
pub fn SetPriority(&self, value: BackgroundTransferPriority) -> Result<()>
pub fn SourceFile(&self) -> Result<IStorageFile>
pub fn Progress(&self) -> Result<BackgroundUploadProgress>
pub fn StartAsync( &self ) -> Result<IAsyncOperationWithProgress<UploadOperation, UploadOperation>>
pub fn AttachAsync( &self ) -> Result<IAsyncOperationWithProgress<UploadOperation, UploadOperation>>
pub fn TransferGroup(&self) -> Result<BackgroundTransferGroup>
pub fn MakeCurrentInTransferGroup(&self) -> Result<()>
pub fn SetRequestHeader( &self, headername: &HSTRING, headervalue: &HSTRING ) -> Result<()>
pub fn RemoveRequestHeader(&self, headername: &HSTRING) -> Result<()>
Trait Implementations§
§impl Clone for UploadOperation
impl Clone for UploadOperation
§fn clone(&self) -> UploadOperation
fn clone(&self) -> UploadOperation
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 UploadOperation
impl Debug for UploadOperation
§impl From<&UploadOperation> for &IInspectable
impl From<&UploadOperation> for &IInspectable
§fn from(value: &UploadOperation) -> Self
fn from(value: &UploadOperation) -> Self
Converts to this type from the input type.
§impl From<&UploadOperation> for &IUnknown
impl From<&UploadOperation> for &IUnknown
§fn from(value: &UploadOperation) -> Self
fn from(value: &UploadOperation) -> Self
Converts to this type from the input type.
§impl From<UploadOperation> for IInspectable
impl From<UploadOperation> for IInspectable
§fn from(value: UploadOperation) -> Self
fn from(value: UploadOperation) -> Self
Converts to this type from the input type.
§impl From<UploadOperation> for IUnknown
impl From<UploadOperation> for IUnknown
§fn from(value: UploadOperation) -> Self
fn from(value: UploadOperation) -> Self
Converts to this type from the input type.
§impl Interface for UploadOperation
impl Interface for UploadOperation
§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 UploadOperation
impl PartialEq for UploadOperation
§fn eq(&self, other: &UploadOperation) -> bool
fn eq(&self, other: &UploadOperation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UploadOperation
impl Send for UploadOperation
impl StructuralPartialEq for UploadOperation
impl Sync for UploadOperation
Auto Trait Implementations§
impl RefUnwindSafe for UploadOperation
impl Unpin for UploadOperation
impl UnwindSafe for UploadOperation
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