pub trait OperationPlanningRegistry: Send + Sync {
// Required methods
fn contracts_for(
&self,
operation_id: &OperationId,
) -> Vec<&dyn OperationContract>;
fn estimators_for(
&self,
provider_id: &ProviderId,
) -> Vec<&dyn OperationResourceEstimator>;
}Expand description
Typed implementation registry used at the planning trust boundary. The core requires exactly one matching contract and estimator; missing or duplicate registrations fail closed before an executable plan is built.
Required Methods§
fn contracts_for( &self, operation_id: &OperationId, ) -> Vec<&dyn OperationContract>
fn estimators_for( &self, provider_id: &ProviderId, ) -> Vec<&dyn OperationResourceEstimator>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".