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

struct PulseAudioSoundDevice {
    name: Option<String>,
    description: Option<String>,
    device_kind: DeviceKind,
    volume: Option<ChannelVolumes>,
    volume_avg: u32,
    muted: bool,
}

Fields

name: Option<String>description: Option<String>device_kind: DeviceKindvolume: Option<ChannelVolumes>volume_avg: u32muted: bool

Implementations

impl PulseAudioSoundDevice[src]

fn new(device_kind: DeviceKind) -> Result<Self, Error>[src]

fn with_name(self, name: String) -> Self[src]

fn name(&self) -> String[src]

fn volume(&mut self, volume: ChannelVolumes)[src]

Trait Implementations

impl SoundDevice for PulseAudioSoundDevice[src]

Auto Trait Implementations

impl RefUnwindSafe for PulseAudioSoundDevice[src]

impl Send for PulseAudioSoundDevice[src]

impl Sync for PulseAudioSoundDevice[src]

impl Unpin for PulseAudioSoundDevice[src]

impl UnwindSafe for PulseAudioSoundDevice[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.