#[non_exhaustive]
pub enum EventType {
Show 58 variants System, Result, Note, Noteon, Noteoff, Keypress, Controller, Pgmchange, Chanpress, Pitchbend, Control14, Nonregparam, Regparam, Songpos, Songsel, Qframe, Timesign, Keysign, Start, Continue, Stop, SetposTick, SetposTime, Tempo, Clock, Tick, QueueSkew, TuneRequest, Reset, Sensing, Echo, Oss, ClientStart, ClientExit, ClientChange, PortStart, PortExit, PortChange, PortSubscribed, PortUnsubscribed, Usr0, Usr1, Usr2, Usr3, Usr4, Usr5, Usr6, Usr7, Usr8, Usr9, Sysex, Bounce, UsrVar0, UsrVar1, UsrVar2, UsrVar3, UsrVar4, None, // some variants omitted
}
Expand description

The type of event.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

System

For system status.

Result

For result status.

Note

For note message with duration.

Noteon

For note on message.

Noteoff

For note off message.

Keypress

For keypress message.

Controller

For control change message.

Pgmchange

For program change message.

Chanpress

For channel pressure message.

Pitchbend

For pitchbend message.

Control14

For control message with 14 bit value.

Nonregparam

For 14 bit NRPN address and 14 bit unsigned value.

Regparam

For 14 bit RPN address and 14 bit unsigned value.

Songpos

For song position message with LSB and MSB values.

Songsel

For song select message with numerical ID of song.

Qframe

For time code quarter frame message of MIDI.

Timesign

For time signature message of Standard MIDi File.

Keysign

For key signature message of Standard MIDI File.

Start

For Real Time Start message of MIDI.

Continue

For Real Time Continue message of MIDI.

Stop

For Real Time Stop message of MIDI.

SetposTick

For position setting of tick queue.

SetposTime

For position setting of realtime queue.

Tempo

For tempo message of Standard MIDI File.

Clock

For Real Time Clock message of MIDI.

Tick

For Real Time Tick message of MIDI.

QueueSkew

For skew of tempo for queue.

TuneRequest

For requests to tune.

Reset

For reset to power-on state.

Sensing

For active sensing message.

Echo

For echo message.

Oss

For raw message from Open Sound System.

ClientStart

For appear of the port.

ClientExit

For disappear of the client.

ClientChange

For change of information or status of the client.

PortStart

For addition of the port.

PortExit

For removal of the port.

PortChange

For change of information or status of the port.

PortSubscribed

For establishment of subscription about the port.

PortUnsubscribed

For break of subscription about the port.

Usr0

For user-defined message 0.

Usr1

For user-defined message 1.

Usr2

For user-defined message 2.

Usr3

For user-defined message 3.

Usr4

For user-defined message 4.

Usr5

For user-defined message 5.

Usr6

For user-defined message 6.

Usr7

For user-defined message 7.

Usr8

For user-defined message 8.

Usr9

For user-defined message 9.

Sysex

For system exclisive message with variable length data.

Bounce

For error message.

UsrVar0

For user-defined message 0 with variable length data.

UsrVar1

For user-defined message 1 with variable length data.

UsrVar2

For user-defined message 2 with variable length data.

UsrVar3

For user-defined message 3 with variable length data.

UsrVar4

For user-defined message 4 with variable length data.

None

For invalid or unknown message.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Value type checker.

Get the contained value from a Value. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

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

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Returns the type identifier of Self.

Convert a value to a Value.

Returns the type identifer of self. Read more

Type to get the Type from. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Ensures that the type has been registered with the type system.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Returns a SendValue clone of self.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.