[][src]Trait winrt::RtAsyncOperation

pub trait RtAsyncOperation: RtAsyncAction {
    type TResult;
    fn get_results(&self) -> Result<Self::TResult>;

    fn blocking_get(&self) -> Result<Self::TResult> { ... }
}

Extension for IAsyncOperation with helper methods.

Associated Types

type TResult

Loading content...

Required methods

fn get_results(&self) -> Result<Self::TResult>

Loading content...

Provided methods

fn blocking_get(&self) -> Result<Self::TResult>

Waits for the asynchronous operation to complete, blocking the current thread, then return the result.

Loading content...

Implementors

impl<T: RtType + 'static> RtAsyncOperation for IAsyncOperation<T> where
    AsyncOperationCompletedHandler<T>: ComIid
[src]

type TResult = <T as RtType>::Out

fn blocking_get(&self) -> Result<Self::TResult>[src]

impl<T: RtType + 'static, P: RtType + 'static> RtAsyncOperation for IAsyncOperationWithProgress<T, P> where
    AsyncOperationWithProgressCompletedHandler<T, P>: ComIid
[src]

type TResult = <T as RtType>::Out

fn blocking_get(&self) -> Result<Self::TResult>[src]

Loading content...