[][src]Struct i3status_rs::blocks::sound::Sound

pub struct Sound {
    text: TextWidget,
    id: usize,
    device: Box<dyn SoundDevice>,
    device_kind: DeviceKind,
    step_width: u32,
    format: FormatTemplate,
    on_click: Option<String>,
    show_volume_when_muted: bool,
    mappings: Option<BTreeMap<String, String>>,
    max_vol: Option<u32>,
    scrolling: Scrolling,
}

Fields

text: TextWidgetid: usizedevice: Box<dyn SoundDevice>device_kind: DeviceKindstep_width: u32format: FormatTemplateon_click: Option<String>show_volume_when_muted: boolmappings: Option<BTreeMap<String, String>>max_vol: Option<u32>scrolling: Scrolling

Implementations

impl Sound[src]

fn icon(&self, volume: u32) -> String[src]

Trait Implementations

impl Block for Sound[src]

impl ConfigBlock for Sound[src]

type Config = SoundConfig

Auto Trait Implementations

impl !RefUnwindSafe for Sound[src]

impl !Send for Sound[src]

impl !Sync for Sound[src]

impl Unpin for Sound[src]

impl !UnwindSafe for Sound[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.