Trait fluvio_types::config_file::SaveLoadConfig

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

Required Methods§

source

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

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§