pub trait TomlFile:
Serialize
+ DeserializeOwned
+ Sync {
// Provided methods
fn load<P: AsRef<Path> + Send>(
path: P,
) -> impl Future<Output = ConduitResult<Self>> + Send { ... }
fn save<P: AsRef<Path> + Send>(
&self,
path: P,
) -> impl Future<Output = ConduitResult<()>> + Send { ... }
}Provided Methods§
fn load<P: AsRef<Path> + Send>( path: P, ) -> impl Future<Output = ConduitResult<Self>> + Send
fn save<P: AsRef<Path> + Send>( &self, path: P, ) -> impl Future<Output = ConduitResult<()>> + Send
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.