pub trait ServeWorkflows {
// Required method
fn serve_workflows(self) -> impl Future<Output = Result<(), Box<dyn Error>>>;
}Expand description
Method form of serve, so a CLI’s entry point changes one word:
cli.serve().await becomes cli.serve_workflows().await.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".