1 2 3 4 5 6 7
use anyhow::Result; use futures::future::BoxFuture; pub trait Usecase: Send + Sync { fn command_str(&self) -> Vec<&'static str>; fn run(&self) -> BoxFuture<'_, Result<()>>; }