/// Routes a Resolver capability from `target` to its source, starting from `registration_decl`.
Routes a Resolver capability from `target` to its source, starting from `registration_decl`.
Routes a Resolver capability from ` target ` to its source starting from ` registration_decl ` .
pub async fn route_resolver(
    registration: ResolverRegistration,
    target: &Arc<ComponentInstance>,
) -> Result<CapabilitySource, RoutingError> {
    let allowed_sources =
        AllowedSourcesBuilder::new().builtin(InternalCapability::Resolver).component();
    RoutingStrategy::new()
        .registration::<ResolverRegistration>()
        .offer::<OfferResolverDecl>()
        .expose::<ExposeResolverDecl>()
        .route(registration, target.clone(), allowed_sources, &mut ResolverVisitor)
        .await
}
pub async fn route_resolver ( registration : ResolverRegistration , target : & Arc < ComponentInstance > , ) -> Result < CapabilitySource , RoutingError > { let allowed_sources = AllowedSourcesBuilder :: new ( ) . builtin ( InternalCapability :: Resolver ) . component ( ) ; RoutingStrategy :: new ( ) . registration :: < ResolverRegistration > ( ) . offer :: < OfferResolverDecl > ( ) . expose :: < ExposeResolverDecl > ( ) . route ( registration , target . clone ( ) , allowed_sources , & mut ResolverVisitor ) . await }
Routes a Resolver capability from `target` to its source, starting from `registration_decl`.
Routes a Resolver capability from ` target ` to its source starting from ` registration_decl ` .
registration
ResolverRegistration
target
&Arc<ComponentInstance>