pub trait ConfigSource {
// Required methods
fn source_name(&self) -> String;
fn read_value(&mut self) -> Result<Option<Value>>;
fn write_config<T>(&mut self, config: &T) -> Result<()>
where T: Serialize;
}Required Methods§
fn source_name(&self) -> String
fn read_value(&mut self) -> Result<Option<Value>>
fn write_config<T>(&mut self, config: &T) -> Result<()>where
T: Serialize,
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.