[][src]Struct alsa::hctl::HCtl

pub struct HCtl(_);

snd_hctl_t wrapper

Methods

impl HCtl[src]

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

Wrapper around open that takes a &str instead of a &CStr

pub fn open(c: &CStr, nonblock: bool) -> Result<HCtl>[src]

Open does not support async mode (it's not very Rustic anyway) Note: You probably want to call load afterwards.

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

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

pub fn find_elem<'a>(&'a self, id: &ElemId) -> Option<Elem<'a>>[src]

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

Trait Implementations

impl PollDescriptors for HCtl[src]

fn get(&self) -> Result<Vec<pollfd>>[src]

Wrapper around count and fill - returns an array of pollfds

impl Drop for HCtl[src]

impl Send for HCtl[src]

Auto Trait Implementations

impl !Sync for HCtl

Blanket Implementations

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.

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

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

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