[−][src]Struct i3status_rs::blocks::sound::SoundConfig
Fields
driver: SoundDriverALSA / PulseAudio sound device name
name: Option<String>PulseAudio device name, or
ALSA control name as listed in the output of amixer -D yourdevice scontrols (default is "Master")
device: Option<String>ALSA device name, usually in the form "hw:#" where # is the number of the card desired (default is "default")
device_kind: DeviceKindType of device: sink or source (default is "sink")
natural_mapping: boolUse the mapped volume for evaluating the percentage representation like alsamixer, to be more natural for human ear
step_width: u32The steps volume is in/decreased for the selected audio device (When greater than 50 it gets limited to 50)
format: StringFormat string for displaying sound information. placeholders: {volume}
show_volume_when_muted: boolmappings: Option<BTreeMap<String, String>>max_vol: Option<u32>Trait Implementations
impl Clone for SoundConfig[src]
fn clone(&self) -> SoundConfig[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for SoundConfig[src]
impl Default for SoundConfig[src]
impl<'de> Deserialize<'de> for SoundConfig where
SoundConfig: Default, [src]
SoundConfig: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for SoundConfig[src]
impl Send for SoundConfig[src]
impl Sync for SoundConfig[src]
impl Unpin for SoundConfig[src]
impl UnwindSafe for SoundConfig[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,