pub trait IBackgroundTaskRegistration_Impl: Sized {
    // Required methods
    fn TaskId(&self) -> Result<GUID>;
    fn Name(&self) -> Result<HSTRING>;
    fn Progress(
        &self,
        handler: Option<&BackgroundTaskProgressEventHandler>,
    ) -> Result<EventRegistrationToken>;
    fn RemoveProgress(&self, cookie: &EventRegistrationToken) -> Result<()>;
    fn Completed(
        &self,
        handler: Option<&BackgroundTaskCompletedEventHandler>,
    ) -> Result<EventRegistrationToken>;
    fn RemoveCompleted(&self, cookie: &EventRegistrationToken) -> Result<()>;
    fn Unregister(&self, canceltask: bool) -> Result<()>;
}

Required Methods§

fn TaskId(&self) -> Result<GUID>

fn Name(&self) -> Result<HSTRING>

fn Progress( &self, handler: Option<&BackgroundTaskProgressEventHandler>, ) -> Result<EventRegistrationToken>

fn RemoveProgress(&self, cookie: &EventRegistrationToken) -> Result<()>

fn Completed( &self, handler: Option<&BackgroundTaskCompletedEventHandler>, ) -> Result<EventRegistrationToken>

fn RemoveCompleted(&self, cookie: &EventRegistrationToken) -> Result<()>

fn Unregister(&self, canceltask: bool) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§