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