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)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SelemId
impl RefUnwindSafe for SelemId
impl Send for SelemId
impl Sync for SelemId
impl Unpin for SelemId
impl UnsafeUnpin 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