[][src]Struct alsa::mixer::Mixer

pub struct Mixer(_);

Methods

impl Mixer[src]

pub fn new(name: &str, nonblock: bool) -> Result<Mixer>[src]

Opens a mixer and attaches it to a card identified by its name (like hw:0) and loads the mixer after registering a Selem.

pub fn find_selem(&self, id: &SelemId) -> Option<Selem>[src]

Creates a Selem by looking for a specific selem by name given a mixer (of a card)

pub fn open(nonblock: bool) -> Result<Mixer>[src]

pub fn attach(&mut self, name: &CStr) -> Result<()>[src]

pub fn load(&mut self) -> Result<()>[src]

Important traits for Iter<'a>
pub fn iter(&self) -> Iter[src]

pub fn wait(&self, timeout_ms: Option<u32>) -> Result<bool>[src]

Trait Implementations

impl Descriptors for Mixer[src]

impl Send for Mixer[src]

impl Drop for Mixer[src]

Closes mixer and frees used resources

impl Debug for Mixer[src]

Auto Trait Implementations

impl !Sync for Mixer

impl Unpin for Mixer

impl UnwindSafe for Mixer

impl RefUnwindSafe for Mixer

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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