Trait portaldi_core::traits::AsyncDIProvider
source · pub trait AsyncDIProvider {
type Output: ?Sized;
fn di_on<'life0, 'async_trait>(
container: &'life0 DIContainer
) -> Pin<Box<dyn Future<Output = DI<Self::Output>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn di<'async_trait>(
) -> Pin<Box<dyn Future<Output = DI<Self::Output>> + Send + 'async_trait>>
where
Self: Send + 'async_trait,
{ ... }
}Expand description
Provides component instance for trait DI types that needs async creation.