Trait IBackgroundTaskRegistration_Impl
pub trait IBackgroundTaskRegistration_Impl: IUnknownImpl {
// Required methods
fn TaskId(&self) -> Result<GUID>;
fn Name(&self) -> Result<HSTRING>;
fn Progress(
&self,
handler: Ref<'_, BackgroundTaskProgressEventHandler>,
) -> Result<i64>;
fn RemoveProgress(&self, cookie: i64) -> Result<()>;
fn Completed(
&self,
handler: Ref<'_, BackgroundTaskCompletedEventHandler>,
) -> Result<i64>;
fn RemoveCompleted(&self, cookie: i64) -> Result<()>;
fn Unregister(&self, cancelTask: bool) -> Result<()>;
}
Required Methods§
fn TaskId(&self) -> Result<GUID>
fn Name(&self) -> Result<HSTRING>
fn Progress( &self, handler: Ref<'_, BackgroundTaskProgressEventHandler>, ) -> Result<i64>
fn RemoveProgress(&self, cookie: i64) -> Result<()>
fn Completed( &self, handler: Ref<'_, BackgroundTaskCompletedEventHandler>, ) -> Result<i64>
fn RemoveCompleted(&self, cookie: i64) -> Result<()>
fn Unregister(&self, cancelTask: bool) -> Result<()>
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.