[][src]Trait coi::Provide

pub trait Provide {
    type Output: Inject + ?Sized;
    fn provide<'life0, 'life1, 'async_trait>(
        &'life0 self,
        container: &'life1 mut Container
    ) -> Pin<Box<dyn Future<Output = Result<Arc<Self::Output>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

A trait to manage the construction of an injectable trait or struct.

Associated Types

type Output: Inject + ?Sized

The type that this provider is intended to produce

Loading content...

Required methods

fn provide<'life0, 'life1, 'async_trait>(
    &'life0 self,
    container: &'life1 mut Container
) -> Pin<Box<dyn Future<Output = Result<Arc<Self::Output>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Only intended to be used internally

Loading content...

Implementors

Loading content...