pub struct Configs {
pub volume_lvl: Option<f32>,
pub speed: Option<f32>,
}Fields§
§volume_lvl: Option<f32>§speed: Option<f32>Implementations§
Source§impl Configs
impl Configs
pub fn get_volume(&self) -> f32
pub fn get_speed(&self) -> f32
pub fn get_config_from_args(args: Args) -> Result<Self, ConfigError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Configs
impl RefUnwindSafe for Configs
impl Send for Configs
impl Sync for Configs
impl Unpin for Configs
impl UnwindSafe for Configs
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