Trait ioc::async::Middleware
source · [−]pub trait Middleware: Send + Sync + 'static {
fn instantiate<'life0, 'async_trait>(
&'life0 self,
req: InstantiationRequest
) -> Pin<Box<dyn Future<Output = Result<InstanceRef>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}