Struct portmidi::types::MidiMessage [] [src]

pub struct MidiMessage {
    pub status: u8,
    pub data1: u8,
    pub data2: u8,
}

Represents a Midi message.

Fields

status: u8 data1: u8 data2: u8

Trait Implementations

impl Debug for MidiMessage
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Eq for MidiMessage
[src]

impl PartialEq for MidiMessage
[src]

fn eq(&self, __arg_0: &MidiMessage) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &MidiMessage) -> bool

This method tests for !=.

impl Copy for MidiMessage
[src]

impl Clone for MidiMessage
[src]

fn clone(&self) -> MidiMessage

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl From<[u8; 3]> for MidiMessage
[src]

fn from(raw: [u8; 3]) -> Self

Performs the conversion.

impl Display for MidiMessage
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<PmMessage> for MidiMessage
[src]

Converts a PmMessage to a MidiMessage. This can be used forc_intas well asi32` because these are only type aliases.

fn from(raw: i32) -> Self

Performs the conversion.

impl Into<PmMessage> for MidiMessage
[src]

fn into(self) -> i32

Performs the conversion.