[−][src]Struct alsa::seq::MidiEvent
snd_midi_event_t Wrapper
Sequencer event <-> MIDI byte stream coder
Methods
impl MidiEvent
[src]
pub fn new(bufsize: u32) -> Result<MidiEvent>
[src]
pub fn resize_buffer(&self, bufsize: u32) -> Result<()>
[src]
pub fn enable_running_status(&self, enable: bool)
[src]
Note: this corresponds to snd_midi_event_no_status, but on and off are switched.
Alsa-lib is a bit confusing here. Anyhow, set "enable" to true to enable running status.
pub fn decode(&self, buf: &mut [u8], ev: &mut Event) -> Result<usize>
[src]
pub fn encode<'a>(
&'a mut self,
buf: &[u8]
) -> Result<(usize, Option<Event<'a>>)>
[src]
&'a mut self,
buf: &[u8]
) -> Result<(usize, Option<Event<'a>>)>
In case of success, returns a tuple of (bytes consumed from buf, found Event).
Trait Implementations
Auto Trait Implementations
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,