[−][src]Struct alsa::hctl::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]
ⓘImportant traits for ElemIter<'a>
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 count(&self) -> usize
[src]
fn fill(&self, p: &mut [pollfd]) -> Result<usize>
[src]
fn revents(&self, p: &[pollfd]) -> Result<PollFlags>
[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
Blanket Implementations
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,