Skip to main content

ProcessCancelAbility

Trait ProcessCancelAbility 

Source
pub trait ProcessCancelAbility: Send + Sync {
    // Required method
    fn cancel<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        processes: &'life1 dyn ProcessService,
        request: ProcessCancelRequest<'life2>,
    ) -> Pin<Box<dyn Future<Output = Result<ProcessRecord, PluginError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;

    // Provided methods
    fn cancel_summary<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        processes: &'life1 dyn ProcessService,
        request: ProcessCancelRequest<'life2>,
    ) -> Pin<Box<dyn Future<Output = Result<ProcessCancelSummary, PluginError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn cancel_all_visible<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        processes: &'life1 dyn ProcessService,
        request: ProcessCancelAllRequest<'life2>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ProcessCancelSummary>, PluginError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}

Required Methods§

Source

fn cancel<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, processes: &'life1 dyn ProcessService, request: ProcessCancelRequest<'life2>, ) -> Pin<Box<dyn Future<Output = Result<ProcessRecord, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Provided Methods§

Source

fn cancel_summary<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, processes: &'life1 dyn ProcessService, request: ProcessCancelRequest<'life2>, ) -> Pin<Box<dyn Future<Output = Result<ProcessCancelSummary, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn cancel_all_visible<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, processes: &'life1 dyn ProcessService, request: ProcessCancelAllRequest<'life2>, ) -> Pin<Box<dyn Future<Output = Result<Vec<ProcessCancelSummary>, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§