Trait rea_rs::midi::MidiMessage
source · [−]pub trait MidiMessage: Display + Clone {
fn from_raw(buf: Vec<u8>) -> Option<Self>
where
Self: Sized;
fn get_raw(&self) -> Vec<u8>;
fn borrow_raw(&self) -> &Vec<u8>;
fn borrow_raw_mut(&mut self) -> &mut Vec<u8>;
fn as_raw_message(&self) -> RawMidiMessage { ... }
}
Expand description
Basic MIDI Message functionality.
Required Methods
sourcefn from_raw(buf: Vec<u8>) -> Option<Self>where
Self: Sized,
fn from_raw(buf: Vec<u8>) -> Option<Self>where
Self: Sized,
Check if raw message is of Self
type.
sourcefn borrow_raw(&self) -> &Vec<u8>
fn borrow_raw(&self) -> &Vec<u8>
Borrow raw Vec
sourcefn borrow_raw_mut(&mut self) -> &mut Vec<u8>
fn borrow_raw_mut(&mut self) -> &mut Vec<u8>
Borrow raw Vec
mutably
Provided Methods
sourcefn as_raw_message(&self) -> RawMidiMessage
fn as_raw_message(&self) -> RawMidiMessage
Return raw representation of self.