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§
fn name(&self) -> &str
fn task_type(&self) -> TaskType
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.