[][src]Struct alsa::ctl::ElemId

pub struct ElemId(_);

Methods

impl ElemId[src]

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

pub fn get_device(&self) -> u32[src]

pub fn get_subdevice(&self) -> u32[src]

pub fn get_numid(&self) -> u32[src]

pub fn get_index(&self) -> u32[src]

pub fn get_interface(&self) -> ElemIface[src]

pub fn set_device(&mut self, v: u32)[src]

pub fn set_subdevice(&mut self, v: u32)[src]

pub fn set_numid(&mut self, v: u32)[src]

pub fn set_index(&mut self, v: u32)[src]

pub fn set_interface(&mut self, v: ElemIface)[src]

pub fn set_name(&mut self, v: &CStr)[src]

pub fn new(iface: ElemIface) -> Self[src]

Creates a new ElemId.

To ensure safety (i e make sure we never have an invalid interface enum), we need to supply it to the "new" function.

Trait Implementations

impl Send for ElemId[src]

impl Clone for ElemId[src]

impl Eq for ElemId[src]

impl PartialEq<ElemId> for ElemId[src]

impl Debug for ElemId[src]

Auto Trait Implementations

impl !Sync for ElemId

impl Unpin for ElemId

impl UnwindSafe for ElemId

impl !RefUnwindSafe for ElemId

Blanket Implementations

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

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]