Struct pnmixerlib::prefs::Prefs [] [src]

pub struct Prefs {
    pub device_prefs: DevicePrefs,
    pub view_prefs: ViewPrefs,
    pub behavior_prefs: BehaviorPrefs,
}

Main preferences struct, holding all sub-preferences.

Fields

Methods

impl Prefs
[src]

Reload the current preferences from the config file.

Store the current preferences to the config file.

Conver the current preferences to a viewable String.

Get an available volume control command, which must exist in $PATH. Tries hard to fine one, starting with the given preference setting and falling back to the VOL_CONTROL_COMMANDS slice.

Trait Implementations

impl Debug for Prefs
[src]

Formats the value using the given formatter.

impl Default for Prefs
[src]

Returns the "default value" for a type. Read more

impl Display for Prefs
[src]

Formats the value using the given formatter. Read more