[−][src]Struct alsa::rawmidi::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]
ⓘImportant traits for IO<'a>
Trait Implementations
impl Descriptors for Rawmidi
[src]
fn count(&self) -> usize
[src]
fn fill(&self, p: &mut [pollfd]) -> Result<usize>
[src]
fn revents(&self, p: &[pollfd]) -> Result<Flags>
[src]
fn get(&self) -> Result<Vec<pollfd>>
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,