[−][src]Struct i3status_rs::blocks::sound::PulseAudioSoundDevice
Fields
name: Option<String>
description: Option<String>
device_kind: DeviceKind
volume: Option<ChannelVolumes>
volume_avg: u32
muted: 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]
fn volume(&self) -> u32
[src]
fn muted(&self) -> bool
[src]
fn output_name(&self) -> String
[src]
fn output_description(&self) -> Option<String>
[src]
fn get_info(&mut self) -> Result<(), Error>
[src]
fn set_volume(&mut self, step: i32, max_vol: Option<u32>) -> Result<(), Error>
[src]
fn toggle(&mut self) -> Result<(), Error>
[src]
fn monitor(
&mut self,
id: usize,
tx_update_request: Sender<Task>
) -> Result<(), Error>
[src]
&mut self,
id: usize,
tx_update_request: Sender<Task>
) -> Result<(), Error>
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]
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,