[][src]Trait coi::Provide

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

Associated Types

type Output: Inject

The type that this provider is intended to produce

Loading content...

Required methods

fn provide<'life0, 'life1, 'async_trait>(
    &'life0 self,
    container: &'life1 Container
) -> Pin<Box<dyn Future<Output = Result<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...