A high-performance inference engine for AI models
use std::path::Path;
use crate::backends::BackendError;
#[cfg_attr(not(target_family = "wasm"), async_trait::async_trait)]
#[cfg_attr(target_family = "wasm", async_trait::async_trait(?Send))]
pub trait ActiveTask: Send + Sync {
async fn pause(
self: Box<Self>,
resume_artifact_path: &Path,
) -> Result<(), BackendError>;
async fn cancel(self: Box<Self>);
}