[−][src]Struct alsa::ctl::ElemId
snd_ctl_elem_id_t wrapper
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]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for ElemId
[src]
impl PartialEq<ElemId> for ElemId
[src]
impl Debug for ElemId
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,