ProjectConfigExt

Trait ProjectConfigExt 

Source
pub trait ProjectConfigExt {
    // Required methods
    fn new_config() -> Self;
    fn with_defaults(
        entry: Option<String>,
        output: Option<String>,
        watch: Option<bool>,
        repeat: Option<bool>,
        debug: Option<bool>,
        compress: Option<bool>,
        sample_rate: Option<u32>,
        audio_format: Option<String>,
        output_format: Option<Vec<String>>,
    ) -> Self;
    fn get() -> Result<Self, String>
       where Self: Sized;
    fn from_string(config_string: &str) -> Result<(Self, String), String>
       where Self: Sized;
    fn write_config(&self, new_config: &Self) -> Result<(), String>
       where Self: Sized;
}

Required Methods§

Source

fn new_config() -> Self

Source

fn with_defaults( entry: Option<String>, output: Option<String>, watch: Option<bool>, repeat: Option<bool>, debug: Option<bool>, compress: Option<bool>, sample_rate: Option<u32>, audio_format: Option<String>, output_format: Option<Vec<String>>, ) -> Self

Source

fn get() -> Result<Self, String>
where Self: Sized,

Source

fn from_string(config_string: &str) -> Result<(Self, String), String>
where Self: Sized,

Source

fn write_config(&self, new_config: &Self) -> Result<(), String>
where Self: Sized,

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.

Implementations on Foreign Types§

Source§

impl ProjectConfigExt for ProjectConfig

Source§

fn new_config() -> Self

Source§

fn with_defaults( entry: Option<String>, output: Option<String>, watch: Option<bool>, repeat: Option<bool>, debug: Option<bool>, compress: Option<bool>, sample_rate: Option<u32>, audio_format: Option<String>, output_format: Option<Vec<String>>, ) -> Self

Source§

fn get() -> Result<Self, String>

Source§

fn from_string(config_string: &str) -> Result<(Self, String), String>

Source§

fn write_config(&self, new_config: &Self) -> Result<(), String>

Implementors§