Skip to main content

EvolutionCostPort

Trait EvolutionCostPort 

Source
pub trait EvolutionCostPort: Send + Sync {
    // Required method
    fn query_cost_facts(
        &self,
        portable_root: &Path,
        run_id: &str,
    ) -> Option<EvolutionCostFacts>;
}

Required Methods§

Source

fn query_cost_facts( &self, portable_root: &Path, run_id: &str, ) -> Option<EvolutionCostFacts>

Facts about what this run has spent.

None means no reading was available (the ledger could not be read). Unknown spend is never reported as zero.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl EvolutionCostPort for acativa::runtime::evolution::LedgerEvolutionCostPort

Source§

impl EvolutionCostPort for licoup_workflow_runtime::evolution::LedgerEvolutionCostPort