[][src]Trait async_injector::Provider

pub trait Provider where
    Self: Sized
{ type Output; fn clear<'async_trait>(
    ) -> Pin<Box<dyn Future<Output = Option<Self::Output>> + Send + 'async_trait>>
    where
        Self: Send + 'async_trait
, { ... }
fn build<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Option<Self::Output>> + Send + 'async_trait>>
    where
        Self: Send + 'async_trait
, { ... } }

Associated Types

type Output

Loading content...

Provided methods

fn clear<'async_trait>(
) -> Pin<Box<dyn Future<Output = Option<Self::Output>> + Send + 'async_trait>> where
    Self: Send + 'async_trait, 

What to do when you want to clear the value.

fn build<'async_trait>(
    self
) -> Pin<Box<dyn Future<Output = Option<Self::Output>> + Send + 'async_trait>> where
    Self: Send + 'async_trait, 

What to do when we construct a value.

Loading content...

Implementors

Loading content...