Struct alsa::ctl::ElemId
[−]
[src]
pub struct ElemId(_);
snd_ctl_elem_id_t wrapper
Methods
impl ElemId
[src]
fn get_name(&self) -> Result<&str>
fn get_device(&self) -> u32
fn get_subdevice(&self) -> u32
fn get_numid(&self) -> u32
fn get_index(&self) -> u32
fn get_interface(&self) -> ElemIface
fn set_device(&mut self, v: u32)
fn set_subdevice(&mut self, v: u32)
fn set_numid(&mut self, v: u32)
fn set_index(&mut self, v: u32)
fn set_interface(&mut self, v: ElemIface)
fn set_name(&mut self, v: &CStr)
fn new(iface: ElemIface) -> Self
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
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for ElemId
[src]
impl PartialEq for ElemId
[src]
fn eq(&self, a: &ElemId) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.