Skip to main content

Execute

Trait Execute 

Source
pub trait Execute<In, Out, E> {
    // Required method
    fn execute<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 In,
    ) -> Pin<Box<dyn Future<Output = Result<Out, E>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Handle execution of a request.

Required Methods§

Source

fn execute<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 In, ) -> Pin<Box<dyn Future<Output = Result<Out, E>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Execute a request and return the result.

Implementors§