pub struct DaemonConfig {
pub main: MainSettings,
pub playback: PlaybackSettings,
}Fields§
§main: MainSettings§playback: PlaybackSettingsImplementations§
Source§impl DaemonConfig
impl DaemonConfig
Sourcepub fn reload() -> Result<(), ConfigError>
pub fn reload() -> Result<(), ConfigError>
Reloads the current config
Trait Implementations§
Source§impl Config for DaemonConfig
impl Config for DaemonConfig
Source§const CONFIG_FILE_NAME: &'static str = "daemon"
const CONFIG_FILE_NAME: &'static str = "daemon"
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 DaemonConfig
impl Debug for DaemonConfig
Source§impl Default for DaemonConfig
impl Default for DaemonConfig
Source§fn default() -> DaemonConfig
fn default() -> DaemonConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DaemonConfig
impl<'de> Deserialize<'de> for DaemonConfig
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 DaemonConfig
impl RefUnwindSafe for DaemonConfig
impl Send for DaemonConfig
impl Sync for DaemonConfig
impl Unpin for DaemonConfig
impl UnsafeUnpin for DaemonConfig
impl UnwindSafe for DaemonConfig
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