Skip to main content

ServeWorkflows

Trait ServeWorkflows 

Source
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§

Source

fn serve_workflows(self) -> impl Future<Output = Result<(), Box<dyn Error>>>

Serves this CLI as serve does.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ServeWorkflows for Cli

Source§

fn serve_workflows(self) -> impl Future<Output = Result<(), Box<dyn Error>>>

Implementors§