[][src]Struct lv2rs_midi::RawMidiMessage

#[repr(C)]
pub struct RawMidiMessage(_);

Raw representation of a "normal", non-system-exclusive message.

There are many different but similiar MIDI message types. Due to their similarities, all of them are represented by this type.

RawMidiMessage does not have a writer extension; You simply intitialize it with a value of the MidiMessage enum and that's it.

Reading is done by calling the interpret method which tries to create a MidiMessage value from the raw message.

Methods

impl RawMidiMessage[src]

pub fn interpret(&self) -> Result<MidiMessage, TryFromError>[src]

Try to create a MidiMessage from the raw message.

This basically an alias for MidiMessage::try_from and therefore, errors are forwarded.

Trait Implementations

impl<'a> AtomBody for RawMidiMessage[src]

type InitializationParameter = MidiMessage

The type of the parameter for initialize_body Read more

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> AtomBody for T where
    T: 'static + ScalarAtomBody
[src]

type InitializationParameter = T

The type of the parameter for initialize_body Read more