spin_factors/
runtime_config.rspub mod toml;
use crate::Factor;
pub trait FactorRuntimeConfigSource<F: Factor> {
fn get_runtime_config(&mut self) -> anyhow::Result<Option<F::RuntimeConfig>>;
}
impl<F: Factor> FactorRuntimeConfigSource<F> for () {
fn get_runtime_config(&mut self) -> anyhow::Result<Option<<F as Factor>::RuntimeConfig>> {
Ok(None)
}
}
pub trait RuntimeConfigSourceFinalizer {
fn finalize(&mut self) -> anyhow::Result<()>;
}
impl RuntimeConfigSourceFinalizer for () {
fn finalize(&mut self) -> anyhow::Result<()> {
Ok(())
}
}