Trait fluvio::dataplane::types::config_file::SaveLoadConfig

source ·
pub trait SaveLoadConfig {
    // Required methods
    fn save_to<T>(&self, path: T) -> Result<(), Error>
       where T: AsRef<Path>;
    fn load_from<T>(path: T) -> Result<Self, LoadConfigError>
       where T: AsRef<Path>,
             Self: Sized;
    fn load_str(config: &str) -> Result<Self, LoadConfigError>
       where Self: Sized;
}

Required Methods§

source

fn save_to<T>(&self, path: T) -> Result<(), Error>
where T: AsRef<Path>,

source

fn load_from<T>(path: T) -> Result<Self, LoadConfigError>
where T: AsRef<Path>, Self: Sized,

source

fn load_str(config: &str) -> Result<Self, LoadConfigError>
where Self: Sized,

Object Safety§

This trait is not object safe.

Implementors§