pub trait AsyncTask:
Send
+ Sync
+ 'static {
// Required methods
fn task_type(&self) -> &str;
fn execute(&self) -> Pin<Box<dyn Future<Output = AsyncTaskResult> + Send>>;
// Provided method
fn timeout(&self) -> Duration { ... }
}Expand description
非同期Task の抽象 - ユーザーが自由に実装可能