Skip to main content

ConfigProvider

Trait ConfigProvider 

Source
pub trait ConfigProvider: Send + Sync {
    // Required method
    fn get_gear_config(&self, gear_name: &str) -> Option<&Value>;
}
Expand description

Provider of gear-specific configuration (raw JSON sections only).

Required Methods§

Source

fn get_gear_config(&self, gear_name: &str) -> Option<&Value>

Returns raw JSON section for the gear, if any.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§