[−][src]Struct i3status_rs::blocks::sound::AlsaSoundDevice
Fields
name: String
device: String
natural_mapping: bool
volume: u32
muted: bool
Implementations
impl AlsaSoundDevice
[src]
Trait Implementations
impl SoundDevice for AlsaSoundDevice
[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 AlsaSoundDevice
[src]
impl Send for AlsaSoundDevice
[src]
impl Sync for AlsaSoundDevice
[src]
impl Unpin for AlsaSoundDevice
[src]
impl UnwindSafe for AlsaSoundDevice
[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>,