pub struct Toml {
pub config: Config,
pub colors: Colors,
pub hotkey: Hotkey,
pub global_hotkey: GlobalHotkey,
}
Fields§
§config: Config
§colors: Colors
§hotkey: Hotkey
§global_hotkey: GlobalHotkey
Implementations§
Source§impl Toml
impl Toml
pub fn new() -> Self
pub fn volume(&self) -> u16
pub fn paths(&self) -> &[String]
pub fn output_device(&self) -> &String
pub fn add_path(&mut self, path: String)
pub fn set_volume(&mut self, vol: u16)
pub fn set_output_device(&mut self, device: String)
pub fn write(&self)
pub fn reset(&mut self)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Toml
impl<'de> Deserialize<'de> for Toml
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 Toml
impl RefUnwindSafe for Toml
impl Send for Toml
impl Sync for Toml
impl Unpin for Toml
impl UnwindSafe for Toml
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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