pub trait IAsyncOperationWithProgress_Impl<TResult, TProgress>: IAsyncInfo_Implwhere
TResult: RuntimeType + 'static,
TProgress: RuntimeType + 'static,{
// Required methods
fn SetProgress(
&self,
handler: Ref<'_, AsyncOperationProgressHandler<TResult, TProgress>>,
) -> Result<()>;
fn Progress(
&self,
) -> Result<AsyncOperationProgressHandler<TResult, TProgress>>;
fn SetCompleted(
&self,
handler: Ref<'_, AsyncOperationWithProgressCompletedHandler<TResult, TProgress>>,
) -> Result<()>;
fn Completed(
&self,
) -> Result<AsyncOperationWithProgressCompletedHandler<TResult, TProgress>>;
fn GetResults(&self) -> Result<TResult>;
}
Required Methods§
fn SetProgress( &self, handler: Ref<'_, AsyncOperationProgressHandler<TResult, TProgress>>, ) -> Result<()>
fn Progress(&self) -> Result<AsyncOperationProgressHandler<TResult, TProgress>>
fn SetCompleted( &self, handler: Ref<'_, AsyncOperationWithProgressCompletedHandler<TResult, TProgress>>, ) -> Result<()>
fn Completed( &self, ) -> Result<AsyncOperationWithProgressCompletedHandler<TResult, TProgress>>
fn GetResults(&self) -> Result<TResult>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.