Skip to main content

GetConfig

Trait GetConfig 

Source
pub trait GetConfig: Send + Sync {
    // Required methods
    fn get_config(&self, key: ConfigKey) -> Value;
    fn get_config_at(&self, key: ConfigKey, version: CommitVersion) -> Value;

    // Provided methods
    fn get_config_uint8(&self, key: ConfigKey) -> u64 { ... }
    fn get_config_uint1(&self, key: ConfigKey) -> u8 { ... }
    fn get_config_uint2(&self, key: ConfigKey) -> u16 { ... }
    fn get_config_duration(&self, key: ConfigKey) -> StdDuration { ... }
    fn get_config_duration_opt(&self, key: ConfigKey) -> Option<StdDuration> { ... }
}

Required Methods§

Source

fn get_config(&self, key: ConfigKey) -> Value

Source

fn get_config_at(&self, key: ConfigKey, version: CommitVersion) -> Value

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§