1 2 3 4 5 6 7 8
use alloc::string::String; use cgp::prelude::*; #[derive_component(ConfigUpdaterComponent, ConfigUpdater<ChainDriver>)] pub trait CanUpdateConfig<Config>: HasErrorType { fn update_config(&self, config: &mut Config) -> Result<String, Self::Error>; }