Trait mcvm_pkg::PackageEvaluator
source · 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§
sourcetype CommonInput
type CommonInput
Type passed to most functions, used for common / cached values
sourcetype EvalRelationsResult<'b>: PackageEvalRelationsResult
type EvalRelationsResult<'b>: PackageEvalRelationsResult
Result from package relationship evaluation
sourcetype ConfiguredPackage: ConfiguredPackage<EvalInput<'a> = Self::EvalInput<'a>>
type ConfiguredPackage: ConfiguredPackage<EvalInput<'a> = Self::EvalInput<'a>>
Configured package type
Required Methods§
sourcefn 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 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
sourcefn 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,
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