cosmic::cosmic_config

Trait ConfigSet

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

Required Methods§

Source

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

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§