Struct windows::Foundation::IAsyncActionWithProgress
#[repr(transparent)]pub struct IAsyncActionWithProgress<TProgress>(_, _)
where
TProgress: RuntimeType + 'static;
Expand description
Required features: "Foundation"
Implementations§
§impl<TProgress: RuntimeType + 'static> IAsyncActionWithProgress<TProgress>
impl<TProgress: RuntimeType + 'static> IAsyncActionWithProgress<TProgress>
pub fn SetProgress<P0>(&self, handler: P0) -> Result<()>where P0: IntoParam<AsyncActionProgressHandler<TProgress>>,
pub fn Progress(&self) -> Result<AsyncActionProgressHandler<TProgress>>
pub fn SetCompleted<P0>(&self, handler: P0) -> Result<()>where P0: IntoParam<AsyncActionWithProgressCompletedHandler<TProgress>>,
pub fn Completed( &self ) -> Result<AsyncActionWithProgressCompletedHandler<TProgress>>
pub fn GetResults(&self) -> Result<()>
pub fn Id(&self) -> Result<u32>
pub fn Status(&self) -> Result<AsyncStatus>
pub fn ErrorCode(&self) -> Result<HRESULT>
pub fn Cancel(&self) -> Result<()>
pub fn Close(&self) -> Result<()>
§impl<TProgress: RuntimeType + 'static> IAsyncActionWithProgress<TProgress>
impl<TProgress: RuntimeType + 'static> IAsyncActionWithProgress<TProgress>
Trait Implementations§
§impl<TProgress: RuntimeType + 'static> Clone for IAsyncActionWithProgress<TProgress>
impl<TProgress: RuntimeType + 'static> Clone for IAsyncActionWithProgress<TProgress>
§impl<TProgress: RuntimeType + 'static> ComInterface for IAsyncActionWithProgress<TProgress>
impl<TProgress: RuntimeType + 'static> ComInterface for IAsyncActionWithProgress<TProgress>
fn as_unknown(&self) -> &IUnknown
§impl<TProgress: RuntimeType + 'static> Debug for IAsyncActionWithProgress<TProgress>
impl<TProgress: RuntimeType + 'static> Debug for IAsyncActionWithProgress<TProgress>
§impl<TProgress: RuntimeType + 'static> Future for IAsyncActionWithProgress<TProgress>
impl<TProgress: RuntimeType + 'static> Future for IAsyncActionWithProgress<TProgress>
§impl<TProgress: RuntimeType + 'static> Interface for IAsyncActionWithProgress<TProgress>
impl<TProgress: RuntimeType + 'static> Interface for IAsyncActionWithProgress<TProgress>
type Vtable = IAsyncActionWithProgress_Vtbl<TProgress>
§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.
§impl<TProgress: RuntimeType + 'static> PartialEq<IAsyncActionWithProgress<TProgress>> for IAsyncActionWithProgress<TProgress>
impl<TProgress: RuntimeType + 'static> PartialEq<IAsyncActionWithProgress<TProgress>> for IAsyncActionWithProgress<TProgress>
impl<TProgress: RuntimeType + 'static> Eq for IAsyncActionWithProgress<TProgress>
impl<TProgress: RuntimeType + 'static> Send for IAsyncActionWithProgress<TProgress>
impl<TProgress: RuntimeType + 'static> Sync for IAsyncActionWithProgress<TProgress>
Auto Trait Implementations§
impl<TProgress> RefUnwindSafe for IAsyncActionWithProgress<TProgress>where TProgress: RefUnwindSafe,
impl<TProgress> Unpin for IAsyncActionWithProgress<TProgress>where TProgress: Unpin,
impl<TProgress> UnwindSafe for IAsyncActionWithProgress<TProgress>where TProgress: UnwindSafe,
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
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere F: Future,
§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more