pub trait ProviderFutExt: Future + Sized {
    fn provide<P: Provider>(self, provider: P) -> ProviderFut<Self, P>  { ... }
    fn provide_ref<T: 'static + ?Sized>(
        self,
        value: &T
    ) -> ProviderFut<Self, ProvideRef<'_, T>> { ... } }
Expand description

Extension trait that aims to simplify the providing of values in the async context.

Provided Methods§

Wraps a Future so it can provide values into the async context.

Wraps a Future so it can provide this ref into the async context.

Can be cloned from the context using take_value

Implementors§