pub struct Rawmidi(/* private fields */);
Expand description
snd_rawmidi_t wrapper
Implementations§
source§impl Rawmidi
impl Rawmidi
sourcepub fn new(name: &str, dir: Direction, nonblock: bool) -> Result<Self>
pub fn new(name: &str, dir: Direction, nonblock: bool) -> Result<Self>
Wrapper around open that takes a &str instead of a &CStr
pub fn open(name: &CStr, dir: Direction, nonblock: bool) -> Result<Rawmidi>
pub fn info(&self) -> Result<Info>
pub fn status(&self) -> Result<Status>
pub fn drop(&self) -> Result<()>
pub fn drain(&self) -> Result<()>
pub fn name(&self) -> Result<String>
pub fn io(&self) -> IO<'_> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Rawmidi
impl !Sync for Rawmidi
impl Unpin for Rawmidi
impl UnwindSafe for Rawmidi
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