ResolveDependencies

Trait ResolveDependencies 

Source
pub trait ResolveDependencies: MaybeSend + MaybeSync {
    type ResolvedEnvelope: Envelope<'static> + MaybeSend + MaybeSync;

    // Required method
    fn resolve<'life0, 'async_trait>(
        &'life0 self,
        missing: HashSet<RequiredDependency>,
    ) -> Pin<Box<dyn Future<Output = Result<Resolved<Self::ResolvedEnvelope>, ResolutionError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn resolve<'life0, 'async_trait>( &'life0 self, missing: HashSet<RequiredDependency>, ) -> Pin<Box<dyn Future<Output = Result<Resolved<Self::ResolvedEnvelope>, ResolutionError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Resolve dependencies, starting with a list of dependencies. Should try to resolve all dependents after dependency, if Dependency is missing as well.

  • Once resolved, these dependencies may have missing dependencies of their own.
§Returns
  • Vec<Self::ResolvedEnvelope>: The list of envelopes which were resolved.

Implementations on Foreign Types§

Source§

impl<T> ResolveDependencies for &T

Source§

type ResolvedEnvelope = <T as ResolveDependencies>::ResolvedEnvelope

Source§

fn resolve<'life0, 'async_trait>( &'life0 self, missing: HashSet<RequiredDependency>, ) -> Pin<Box<dyn Future<Output = Result<Resolved<Self::ResolvedEnvelope>, ResolutionError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§