pub struct SelemId(/* private fields */);
Expand description
Wrapper for snd_mixer_selem_id_t No allocation (uses fixed array)
Implementations§
source§impl SelemId
impl SelemId
pub fn new(name: &str, index: u32) -> SelemId
sourcepub fn empty() -> SelemId
pub fn empty() -> SelemId
Returns an empty (zeroed) SelemId. This id is not a usable id and need to be initialized
like SelemId::new()
does
pub fn get_name(&self) -> Result<&str>
pub fn get_index(&self) -> u32
pub fn set_name(&mut self, name: &CStr)
pub fn set_index(&mut self, index: u32)
Auto Trait Implementations§
impl RefUnwindSafe for SelemId
impl Send for SelemId
impl Sync for SelemId
impl Unpin for SelemId
impl UnwindSafe for SelemId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more