pub struct CommonConfig {
pub main: MainSettings,
pub loudnorm: LoudnormSettings,
pub export_preset: HashMap<String, ExportConfig>,
}Fields§
§main: MainSettings§loudnorm: LoudnormSettings§export_preset: HashMap<String, ExportConfig>Trait Implementations§
Source§impl Config for CommonConfig
impl Config for CommonConfig
Source§const CONFIG_FILE_NAME: &'static str = "common"
const CONFIG_FILE_NAME: &'static str = "common"
The name of the config file, excluding its extension
Source§fn config_dir() -> PathBuf
fn config_dir() -> PathBuf
The config dir the file is stored in Read more
fn __config_dir() -> &'static Path
Source§fn load() -> Result<Self, ConfigError>
fn load() -> Result<Self, ConfigError>
Loads
Self from the system config directory using Self::CONFIG_FILE_NAME, creating a default config if one does not already existfn from_toml(toml: impl AsRef<str>) -> Result<Self, ConfigError>
fn print_default() -> String
Source§impl Debug for CommonConfig
impl Debug for CommonConfig
Source§impl Default for CommonConfig
impl Default for CommonConfig
Source§fn default() -> CommonConfig
fn default() -> CommonConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommonConfigwhere
CommonConfig: Default,
impl<'de> Deserialize<'de> for CommonConfigwhere
CommonConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommonConfig
impl RefUnwindSafe for CommonConfig
impl Send for CommonConfig
impl Sync for CommonConfig
impl Unpin for CommonConfig
impl UnsafeUnpin for CommonConfig
impl UnwindSafe for CommonConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more