pub trait SyncConfigBackend: 'static {
// Required methods
fn read(file: WatchFile) -> Result<RawConfigMap>;
fn write(file: &mut WriteFile, config: &RawConfigMap) -> Result<()>;
}Expand description
Represents a serializing/encoding backend for SyncConfig.
Required Methods§
Sourcefn read(file: WatchFile) -> Result<RawConfigMap>
fn read(file: WatchFile) -> Result<RawConfigMap>
Read/deserialize raw config from the file.
This method runs in unblocked context.
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.