pub struct HCtl(/* private fields */);Expand description
snd_hctl_t wrapper
Implementations§
Source§impl HCtl
impl HCtl
Sourcepub fn new(c: &str, nonblock: bool) -> Result<HCtl>
pub fn new(c: &str, nonblock: bool) -> Result<HCtl>
Wrapper around open that takes a &str instead of a &CStr
Sourcepub fn open(c: &CStr, nonblock: bool) -> Result<HCtl>
pub fn open(c: &CStr, nonblock: bool) -> Result<HCtl>
Open does not support async mode (it’s not very Rustic anyway)
Note: You probably want to call load afterwards.
Sourcepub fn from_card(c: &Card, nonblock: bool) -> Result<HCtl>
pub fn from_card(c: &Card, nonblock: bool) -> Result<HCtl>
Wrapper around open. You probably want to call load afterwards.
pub fn load(&self) -> Result<()>
pub fn elem_iter(&self) -> ElemIter<'_> ⓘ
pub fn find_elem(&self, id: &ElemId) -> Option<Elem<'_>>
pub fn handle_events(&self) -> Result<u32>
pub fn wait(&self, timeout_ms: Option<u32>) -> Result<bool>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HCtl
impl RefUnwindSafe for HCtl
impl !Sync for HCtl
impl Unpin for HCtl
impl UnsafeUnpin for HCtl
impl UnwindSafe for HCtl
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