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.
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§
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