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§
Source§impl Descriptors for Rawmidi
impl Descriptors for Rawmidi
impl Send for Rawmidi
Auto Trait Implementations§
impl Freeze for Rawmidi
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