pub trait PackageEvaluator<'a> {
    type CommonInput;
    type EvalInput<'b>: Clone;
    type EvalRelationsResult<'b>: PackageEvalRelationsResult;
    type ConfiguredPackage: ConfiguredPackage<EvalInput<'a> = Self::EvalInput<'a>>;

    // Required methods
    fn eval_package_relations<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        pkg: &'life1 ArcPkgReq,
        input: &'life2 Self::EvalInput<'a>,
        common_input: &'life3 Self::CommonInput
    ) -> Pin<Box<dyn Future<Output = Result<Self::EvalRelationsResult<'a>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn get_package_properties<'b, 'life0, 'life1, 'async_trait>(
        &'b mut self,
        pkg: &'life0 ArcPkgReq,
        common_input: &'life1 Self::CommonInput
    ) -> Pin<Box<dyn Future<Output = Result<&'b PackageProperties>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'b: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Trait for a central package registry that can evaluate packages

Required Associated Types§

source

type CommonInput

Type passed to most functions, used for common / cached values

source

type EvalInput<'b>: Clone

Type passed to the evaluation function

source

type EvalRelationsResult<'b>: PackageEvalRelationsResult

Result from package relationship evaluation

source

type ConfiguredPackage: ConfiguredPackage<EvalInput<'a> = Self::EvalInput<'a>>

Configured package type

Required Methods§

source

fn eval_package_relations<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 mut self, pkg: &'life1 ArcPkgReq, input: &'life2 Self::EvalInput<'a>, common_input: &'life3 Self::CommonInput ) -> Pin<Box<dyn Future<Output = Result<Self::EvalRelationsResult<'a>>> + Send + 'async_trait>>where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Evaluate the relationships of a package

source

fn get_package_properties<'b, 'life0, 'life1, 'async_trait>( &'b mut self, pkg: &'life0 ArcPkgReq, common_input: &'life1 Self::CommonInput ) -> Pin<Box<dyn Future<Output = Result<&'b PackageProperties>> + Send + 'async_trait>>where Self: 'async_trait, 'b: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get the properties of a package

Implementors§