Skip to main content

ConfigStore

Trait ConfigStore 

Source
pub trait ConfigStore {
    // Required methods
    fn config_get(&self, key: &str) -> Result<Option<String>, DbError>;
    fn config_set(&self, key: &str, value: &str) -> Result<(), DbError>;
    fn config_list(&self) -> Result<Vec<Config>, DbError>;
}
Expand description

Shared config operations used by multiple modules.

Required Methods§

Source

fn config_get(&self, key: &str) -> Result<Option<String>, DbError>

Source

fn config_set(&self, key: &str, value: &str) -> Result<(), DbError>

Source

fn config_list(&self) -> Result<Vec<Config>, DbError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§