[−][src]Struct lv2rs_midi::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
fn get_uri() -> &'static CStr
[src]
unsafe fn initialize_body<'b, W>(
writer: &mut W,
message: &MidiMessage,
_urids: &mut CachedMap
) -> Result<(), ()> where
W: WritingFrame<'b> + WritingFrameExt<'b, Self>,
[src]
writer: &mut W,
message: &MidiMessage,
_urids: &mut CachedMap
) -> Result<(), ()> where
W: WritingFrame<'b> + WritingFrameExt<'b, Self>,
fn create_ref<'b>(raw_data: &'b [u8]) -> Result<&'b Self, ()>
[src]
Auto Trait Implementations
impl Send for RawMidiMessage
impl Sync for RawMidiMessage
Blanket Implementations
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> AtomBody for T where
T: 'static + ScalarAtomBody,
[src]
T: 'static + ScalarAtomBody,
type InitializationParameter = T
The type of the parameter for initialize_body
Read more
fn get_uri() -> &'static CStr
[src]
unsafe fn initialize_body<'a, W>(
writer: &mut W,
parameter: &T,
_urids: &mut CachedMap
) -> Result<(), ()> where
W: WritingFrame<'a> + WritingFrameExt<'a, T>,
[src]
writer: &mut W,
parameter: &T,
_urids: &mut CachedMap
) -> Result<(), ()> where
W: WritingFrame<'a> + WritingFrameExt<'a, T>,