cosmic_config

Trait ConfigSet

Source
pub trait ConfigSet {
    // Required method
    fn set<T: Serialize>(&self, key: &str, value: T) -> Result<(), Error>;
}

Required Methods§

Source

fn set<T: Serialize>(&self, key: &str, value: T) -> Result<(), Error>

Set a configuration value

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§