[][src]Struct alsa::rawmidi::Rawmidi

pub struct Rawmidi(_);

snd_rawmidi_t wrapper

Methods

impl Rawmidi[src]

pub fn new(name: &str, dir: Direction, nonblock: bool) -> Result<Self>[src]

Wrapper around open that takes a &str instead of a &CStr

pub fn open(name: &CStr, dir: Direction, nonblock: bool) -> Result<Rawmidi>[src]

pub fn info(&self) -> Result<Info>[src]

pub fn drop(&self) -> Result<()>[src]

pub fn drain(&self) -> Result<()>[src]

pub fn name(&self) -> Result<String>[src]

Important traits for IO<'a>
pub fn io<'a>(&'a self) -> IO<'a>[src]

Trait Implementations

impl Descriptors for Rawmidi[src]

impl Drop for Rawmidi[src]

impl Send for Rawmidi[src]

Auto Trait Implementations

impl RefUnwindSafe for Rawmidi

impl !Sync for Rawmidi

impl Unpin for Rawmidi

impl UnwindSafe for Rawmidi

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.