Skip to main content

Task

Trait Task 

Source
pub trait Task: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn task_type(&self) -> TaskType;
    fn kill(
        &self,
        task_id: &str,
        set_app_state: SetAppState,
    ) -> impl Future<Output = ()> + Send;
}
Expand description

Task trait for kill operations

Required Methods§

Source

fn name(&self) -> &str

Source

fn task_type(&self) -> TaskType

Source

fn kill( &self, task_id: &str, set_app_state: SetAppState, ) -> impl Future<Output = ()> + Send

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.

Implementors§