Trait Plug

Source
pub trait Plug<Ctx>:
    Display
    + Send
    + Sync
    + 'static {
    // Required method
    fn call<'life0, 'async_trait>(
        &'life0 self,
        ctx: Ctx,
    ) -> Pin<Box<dyn Future<Output = PlugResult<Ctx>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

plug trait that the building blocks in a pipeline shall implement

Required Methods§

Source

fn call<'life0, 'async_trait>( &'life0 self, ctx: Ctx, ) -> Pin<Box<dyn Future<Output = PlugResult<Ctx>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§