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 read(&self, buf: &mut [u8]) -> Result<usize>
pub fn tread(&self, buf: &mut [u8]) -> Result<(timespec, usize)>
pub fn write(&self, buf: &[u8]) -> Result<usize>
pub fn io(&self) -> IO<'_> ⓘ
pub fn params_current(&self) -> Result<Params>
pub fn params(&mut self, params: &Params) -> Result<()>
Trait Implementations§
Source§impl Descriptors for Rawmidi
impl Descriptors for Rawmidi
impl Send for Rawmidi
Auto Trait Implementations§
impl !Sync for Rawmidi
impl Freeze for Rawmidi
impl RefUnwindSafe for Rawmidi
impl Unpin for Rawmidi
impl UnsafeUnpin 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