pub trait Config: Serialize + DeserializeOwned {
// Provided methods
fn save<P: AsRef<Path>>(&self, file: P) -> Result<()> { ... }
fn load<P: AsRef<Path>>(file: P) -> Result<Self, ConfigError> { ... }
fn load_binary(data: &[u8]) -> Result<Self, ConfigError> { ... }
}Expand description
Configuration trait.
Provided Methods§
sourcefn load_binary(data: &[u8]) -> Result<Self, ConfigError>
fn load_binary(data: &[u8]) -> Result<Self, ConfigError>
Object Safety§
This trait is not object safe.