Trait Middleware

Source
pub trait Middleware:
    Send
    + Sync
    + 'static {
    // Required method
    fn instantiate<'life0, 'async_trait>(
        &'life0 self,
        req: InstantiationRequest,
    ) -> Pin<Box<dyn Future<Output = Result<InstanceRef>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn instantiate<'life0, 'async_trait>( &'life0 self, req: InstantiationRequest, ) -> Pin<Box<dyn Future<Output = Result<InstanceRef>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§