pub trait Configwhere
Self: DeserializeOwned + Serialize,{
// Provided methods
fn persisted(self, path: &Path) -> PersistedConfig<Self> { ... }
fn load<P: AsRef<Path>>(path: P) -> Result<Self, Error> { ... }
fn save<P: AsRef<Path>>(&self, path: P) -> Result<(), Error> { ... }
}
Provided Methods§
fn persisted(self, path: &Path) -> PersistedConfig<Self>
fn load<P: AsRef<Path>>(path: P) -> Result<Self, Error>
fn save<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>
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.