Struct winrt::windows::foundation::IAsyncOperation
source · #[repr(C)]pub struct IAsyncOperation<TResult>where
TResult: RtType,{ /* private fields */ }
Implementations§
source§impl<TResult: RtType> IAsyncOperation<TResult>
impl<TResult: RtType> IAsyncOperation<TResult>
pub fn set_completed(
&self,
handler: &AsyncOperationCompletedHandler<TResult>
) -> Result<()>
pub fn get_completed(
&self
) -> Result<Option<ComPtr<AsyncOperationCompletedHandler<TResult>>>>
pub fn get_results(&self) -> Result<TResult::Out>
Methods from Deref<Target = IInspectable>§
sourcepub fn get_iids(&self) -> ComArray<Guid>
pub fn get_iids(&self) -> ComArray<Guid>
Returns the interfaces that are implemented by the current Windows Runtime object.
sourcepub fn get_trust_level(&self) -> TrustLevel
pub fn get_trust_level(&self) -> TrustLevel
Returns the trust level of the current Windows Runtime object.
Methods from Deref<Target = IUnknown>§
Trait Implementations§
source§impl ComIid for IAsyncOperation<ErrorDetails>
impl ComIid for IAsyncOperation<ErrorDetails>
source§impl ComIid for IAsyncOperation<IInspectable>
impl ComIid for IAsyncOperation<IInspectable>
source§impl ComIid for IAsyncOperation<IMapView<HString, IInspectable>>
impl ComIid for IAsyncOperation<IMapView<HString, IInspectable>>
source§impl ComIid for IAsyncOperation<IPropertySet>
impl ComIid for IAsyncOperation<IPropertySet>
source§impl ComIid for IAsyncOperation<IReference<DateTime>>
impl ComIid for IAsyncOperation<IReference<DateTime>>
source§impl ComIid for IAsyncOperation<IReference<TimeSpan>>
impl ComIid for IAsyncOperation<IReference<TimeSpan>>
source§impl ComIid for IAsyncOperation<IVectorView<HString>>
impl ComIid for IAsyncOperation<IVectorView<HString>>
source§impl ComIid for IAsyncOperation<IVectorView<IInspectable>>
impl ComIid for IAsyncOperation<IVectorView<IInspectable>>
source§impl ComIid for IAsyncOperation<IVectorView<IMapView<HString, IInspectable>>>
impl ComIid for IAsyncOperation<IVectorView<IMapView<HString, IInspectable>>>
source§impl ComIid for IAsyncOperation<IVectorView<u32>>
impl ComIid for IAsyncOperation<IVectorView<u32>>
source§impl<TResult> ComInterface for IAsyncOperation<TResult>where
TResult: RtType,
impl<TResult> ComInterface for IAsyncOperation<TResult>where
TResult: RtType,
source§impl<TResult> Deref for IAsyncOperation<TResult>where
TResult: RtType,
impl<TResult> Deref for IAsyncOperation<TResult>where
TResult: RtType,
§type Target = IInspectable
type Target = IInspectable
The resulting type after dereferencing.
source§fn deref(&self) -> &IInspectable
fn deref(&self) -> &IInspectable
Dereferences the value.
source§impl<TResult> DerefMut for IAsyncOperation<TResult>where
TResult: RtType,
impl<TResult> DerefMut for IAsyncOperation<TResult>where
TResult: RtType,
source§fn deref_mut(&mut self) -> &mut IInspectable
fn deref_mut(&mut self) -> &mut IInspectable
Mutably dereferences the value.
source§impl<T: RtType + 'static> RtAsyncAction for IAsyncOperation<T>where
AsyncOperationCompletedHandler<T>: ComIid,
impl<T: RtType + 'static> RtAsyncAction for IAsyncOperation<T>where
AsyncOperationCompletedHandler<T>: ComIid,
source§fn blocking_wait(&self)
fn blocking_wait(&self)
Waits for the asynchronous action to complete, blocking the current thread.