Skip to main content

Execute

Trait Execute 

pub trait Execute<C>: Work {
    type Output;

    // Required method
    fn execute(self, context: C) -> impl Future<Output = Self::Output> + Send;
}
Expand description

The asynchronous operation that completes the work.

Required Associated Types§

type Output

Required Methods§

fn execute(self, context: C) -> impl Future<Output = Self::Output> + Send

Must finish the work or handle its failure, including fallback, before returning.

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.

Implementors§