pub trait CommandExecutor: Sized {
// Required method
fn execute_from_path(
self,
manifest_path: PathBuf,
) -> impl Future<Output = Result<()>> + Send;
// Provided method
fn execute(self) -> impl Future<Output = Result<()>> + Send
where Self: Send { ... }
}Expand description
Common trait for CLI command execution pattern
Required Methods§
Provided Methods§
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.