Struct makepad_widgets::shader::std::windows::Foundation::IAsyncOperation
#[repr(transparent)]pub struct IAsyncOperation<TResult>(/* private fields */)
where
TResult: RuntimeType + 'static;Expand description
Required features: "Foundation"
Implementations§
§impl<TResult> IAsyncOperation<TResult>where
TResult: RuntimeType + 'static,
impl<TResult> IAsyncOperation<TResult>where TResult: RuntimeType + 'static,
pub fn SetCompleted<P0>(&self, handler: P0) -> Result<(), Error>where P0: IntoParam<AsyncOperationCompletedHandler<TResult>, <AsyncOperationCompletedHandler<TResult> as TypeKind>::TypeKind>,
pub fn Completed( &self ) -> Result<AsyncOperationCompletedHandler<TResult>, Error>
pub fn GetResults(&self) -> Result<TResult, Error>
pub fn Id(&self) -> Result<u32, Error>
pub fn Status(&self) -> Result<AsyncStatus, Error>
pub fn ErrorCode(&self) -> Result<HRESULT, Error>
pub fn Cancel(&self) -> Result<(), Error>
pub fn Close(&self) -> Result<(), Error>
§impl<TResult> IAsyncOperation<TResult>where
TResult: RuntimeType + 'static,
impl<TResult> IAsyncOperation<TResult>where TResult: RuntimeType + 'static,
Trait Implementations§
§impl<TResult> Clone for IAsyncOperation<TResult>where
TResult: RuntimeType + 'static,
impl<TResult> Clone for IAsyncOperation<TResult>where TResult: RuntimeType + 'static,
§fn clone(&self) -> IAsyncOperation<TResult> ⓘ
fn clone(&self) -> IAsyncOperation<TResult> ⓘ
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<TResult> ComInterface for IAsyncOperation<TResult>where
TResult: RuntimeType + 'static,
impl<TResult> ComInterface for IAsyncOperation<TResult>where TResult: RuntimeType + 'static,
fn as_unknown(&self) -> &IUnknown
§impl<TResult> Debug for IAsyncOperation<TResult>where
TResult: RuntimeType + 'static,
impl<TResult> Debug for IAsyncOperation<TResult>where TResult: RuntimeType + 'static,
§impl<TResult> Future for IAsyncOperation<TResult>where
TResult: RuntimeType + 'static,
impl<TResult> Future for IAsyncOperation<TResult>where TResult: RuntimeType + 'static,
§fn poll(
self: Pin<&mut IAsyncOperation<TResult>>,
context: &mut Context<'_>
) -> Poll<<IAsyncOperation<TResult> as Future>::Output>
fn poll( self: Pin<&mut IAsyncOperation<TResult>>, context: &mut Context<'_> ) -> Poll<<IAsyncOperation<TResult> as Future>::Output>
Attempt to resolve the future to a final value, registering
the current task for wakeup if the value is not yet available. Read more
§impl<TResult> Interface for IAsyncOperation<TResult>where
TResult: RuntimeType + 'static,
impl<TResult> Interface for IAsyncOperation<TResult>where TResult: RuntimeType + 'static,
type Vtable = IAsyncOperation_Vtbl<TResult>
§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<TResult> PartialEq<IAsyncOperation<TResult>> for IAsyncOperation<TResult>where
TResult: RuntimeType + 'static,
impl<TResult> PartialEq<IAsyncOperation<TResult>> for IAsyncOperation<TResult>where TResult: RuntimeType + 'static,
§fn eq(&self, other: &IAsyncOperation<TResult>) -> bool
fn eq(&self, other: &IAsyncOperation<TResult>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<TResult> Eq for IAsyncOperation<TResult>where TResult: RuntimeType + 'static,
impl<TResult> Send for IAsyncOperation<TResult>where TResult: RuntimeType + 'static,
impl<TResult> Sync for IAsyncOperation<TResult>where TResult: RuntimeType + 'static,
Auto Trait Implementations§
impl<TResult> RefUnwindSafe for IAsyncOperation<TResult>where TResult: RefUnwindSafe,
impl<TResult> Unpin for IAsyncOperation<TResult>where TResult: Unpin,
impl<TResult> UnwindSafe for IAsyncOperation<TResult>where TResult: 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